gtk-redshift: Use absolute path when launching redshift process.
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
@@ -19,3 +19,4 @@
|
||||
|
||||
|
||||
LOCALEDIR = '@localedir@'
|
||||
BINDIR = '@bindir@'
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user