aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift-gtk/redshift-gtk.in
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-12-29 19:41:10 -0500
committerTingPing <tingping@tingping.se>2014-01-01 14:11:11 -0500
commit8768ba76f8b6aa760822e1c83ba82477ae601314 (patch)
treee96047211ddc4d05578ed9bbe2cfc17e593e6abc /src/redshift-gtk/redshift-gtk.in
parentMerge pull request #19 from TingPing/patch-1 (diff)
downloadredshift-ng-8768ba76f8b6aa760822e1c83ba82477ae601314.tar.gz
redshift-ng-8768ba76f8b6aa760822e1c83ba82477ae601314.tar.bz2
redshift-ng-8768ba76f8b6aa760822e1c83ba82477ae601314.tar.xz
Port redshift-gtk to Python3
Python 2 is no longer supported
Diffstat (limited to 'src/redshift-gtk/redshift-gtk.in')
-rw-r--r--src/redshift-gtk/redshift-gtk.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/redshift-gtk/redshift-gtk.in b/src/redshift-gtk/redshift-gtk.in
new file mode 100644
index 0000000..ba6e1ac
--- /dev/null
+++ b/src/redshift-gtk/redshift-gtk.in
@@ -0,0 +1,27 @@
+#!/usr/bin/env python3
+# redshift-gtk -- GTK+ Redshift launcher script
+# This file is part of Redshift.
+
+# Redshift is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# Redshift is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with Redshift. If not, see <http://www.gnu.org/licenses/>.
+
+# Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
+
+import sys
+
+# Some non-standard install paths may need to be added
+sys.path.append('@pythondir@')
+
+if __name__ == '__main__':
+ from redshift_gtk.statusicon import run
+ run()