From 8768ba76f8b6aa760822e1c83ba82477ae601314 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 29 Dec 2013 19:41:10 -0500 Subject: Port redshift-gtk to Python3 Python 2 is no longer supported --- src/redshift-gtk/redshift-gtk.in | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/redshift-gtk/redshift-gtk.in (limited to 'src/redshift-gtk/redshift-gtk.in') 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 . + +# Copyright (c) 2010 Jon Lund Steffensen + +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() -- cgit v1.2.3-70-g09d2