diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2010-02-11 22:14:33 +0100 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2010-02-11 22:14:33 +0100 |
commit | e8b121c0dcea55897ea5991a6468f092d59c3a07 (patch) | |
tree | b76559b98619bdf1aea47c9915fbca69c346366b | |
parent | Turn gtk-redshift into a python module. A launcher script is installed (diff) | |
download | redshift-ng-e8b121c0dcea55897ea5991a6468f092d59c3a07.tar.gz redshift-ng-e8b121c0dcea55897ea5991a6468f092d59c3a07.tar.bz2 redshift-ng-e8b121c0dcea55897ea5991a6468f092d59c3a07.tar.xz |
gtk-redshift: Use absolute path when launching redshift process.
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | src/gtk-redshift/defs.py.in | 1 | ||||
-rw-r--r-- | src/gtk-redshift/statusicon.py | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index e7ff3b9..3d64d82 100644 --- a/Makefile.am +++ b/Makefile.am @@ -61,7 +61,8 @@ CLEANFILES = src/gtk-redshift/defs.py # Local python definitions src/gtk-redshift/defs.py: src/gtk-redshift/defs.py.in - sed -e "s|\@localedir\@|$(localedir)|g" $< > $@ + sed -e "s|\@bindir\@|$(bindir)|g" \ + -e "s|\@localedir\@|$(localedir)|g" $< > $@ # Update PO translations .PHONY: update-po diff --git a/src/gtk-redshift/defs.py.in b/src/gtk-redshift/defs.py.in index 91eccf9..d3ca5ed 100644 --- a/src/gtk-redshift/defs.py.in +++ b/src/gtk-redshift/defs.py.in @@ -19,3 +19,4 @@ LOCALEDIR = '@localedir@' +BINDIR = '@bindir@' diff --git a/src/gtk-redshift/statusicon.py b/src/gtk-redshift/statusicon.py index ae05b5c..9925c35 100644 --- a/src/gtk-redshift/statusicon.py +++ b/src/gtk-redshift/statusicon.py @@ -38,7 +38,7 @@ def run_statusicon(): # Start redshift with arguments from the command line args = sys.argv[1:] - args.insert(0, 'redshift') + args.insert(0, os.path.join(defs.BINDIR, 'redshift')) process = subprocess.Popen(args) try: |