* Remove option to install to different dirs as that is broken due to hardcoded paths in D-bus service files. * Don't install fuzzywuzzy through pip from install.sh as it may be preferable to install it from distribution packages * Improve README a bit
22 lines
907 B
Bash
Executable File
22 lines
907 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu -o pipefail
|
|
cd "$(dirname "$(realpath "${0}")")"
|
|
|
|
DATADIR=/usr/share
|
|
LIBDIR=/usr/lib
|
|
|
|
# The actual executable
|
|
install -Dm 0755 gnome-pass-search-provider.py "${LIBDIR}"/gnome-pass-search-provider/gnome-pass-search-provider.py
|
|
|
|
# Search provider definition
|
|
install -Dm 0644 conf/org.gnome.Pass.SearchProvider.ini "${DATADIR}"/gnome-shell/search-providers/org.gnome.Pass.SearchProvider.ini
|
|
|
|
# Desktop file (for having an icon)
|
|
install -Dm 0644 conf/org.gnome.Pass.SearchProvider.desktop "${DATADIR}"/applications/org.gnome.Pass.SearchProvider.desktop
|
|
|
|
# DBus configuration (no-systemd)
|
|
install -Dm 0644 conf/org.gnome.Pass.SearchProvider.service.dbus "${DATADIR}"/dbus-1/services/org.gnome.Pass.SearchProvider.service
|
|
|
|
# DBus configuration (systemd)
|
|
install -Dm 0644 conf/org.gnome.Pass.SearchProvider.service.systemd "${LIBDIR}"/systemd/user/org.gnome.Pass.SearchProvider.service
|