Add README, allow to override default installation paths

This commit is contained in:
Jonathan Lestrelin 2017-03-14 16:58:12 +01:00
parent 3518e05689
commit da2f709586
3 changed files with 34 additions and 24745 deletions

30
README.md Normal file
View File

@ -0,0 +1,30 @@
A search provider for Gnome-Shell that adds support for searching in [pass](https://www.passwordstore.org/).
Names of passwords will show up in Gnome-Shell searches, choosing one will copy the corresponding content to the clipboard.
# Installation
## Packages
*TODO*
## Manual
Ensure that python-gobject is installed on your system (probably already the case) :
`$PACKAGE_MANAGER install python-gobject`
Download or clone this repository :
`git clone git@github.com:jle64/gnome-shell-pass-search-provider.git`
Run the installation script as root :
`sudo ./install.sh`
If you need to you can change the installation paths :
`sudo SYSCONFDIR=/etc DATADIR=/usr/share LIBDIR=/usr/lib LIBEXECDIR=/usr/lib ./install.sh`
# Compatibility
This implements the `org.gnome.Shell.SearchProvider2` D-Bus API. I'm not sure since when this has been in Gnome nor until when it will stay. This works fine on Gnome 3.22 and I expect it will continue to work for some time with ulterior versions.

24741
dbus.service

File diff suppressed because it is too large Load Diff

View File

@ -2,10 +2,10 @@
set -eu -o pipefail
cd "$(dirname "$(realpath "${0}")")"
DATADIR='/usr/share'
LIBDIR='/usr/lib'
LIBEXECDIR='/usr/lib/'
SYSCONFDIR='/etc'
DATADIR=${DATADIR:-/usr/share}
LIBDIR=${LIBDIR:-/usr/lib}
LIBEXECDIR=${LIBEXECDIR:-/usr/lib/}
SYSCONFDIR=${SYSCONFDIR:-/etc}
install -Dm 0755 daemon.py "${LIBEXECDIR}"/gnome-shell-search-pass/daemon.py