gtk-redshift: Use absolute path when launching redshift process.

This commit is contained in:
Jon Lund Steffensen
2010-02-11 22:14:33 +01:00
parent 739f806f19
commit e8b121c0dc
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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
+1
View File
@@ -19,3 +19,4 @@
LOCALEDIR = '@localedir@'
BINDIR = '@bindir@'
+1 -1
View File
@@ -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: