diff options
-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: |