summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2021-01-03 22:05:08 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-01-09 14:30:39 +0700
commit154ccd9fe630bc400abb96585cfd587e1144b6a6 (patch)
tree8e493a21dbe65b65e7a0f1525df5832f790d7c70 /desktop
parent3da1fdd4c34832cd8f6549f03d9c1edaff8b2f75 (diff)
downloadslackbuilds-154ccd9fe630bc400abb96585cfd587e1144b6a6.tar.gz
desktop/redshift: Include patch to disable AppIndicator
This patch application is commented out by default. Signed-off-by: Robby Workman <rworkman@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/redshift/disable-appindicator.patch16
-rw-r--r--desktop/redshift/redshift.SlackBuild3
2 files changed, 19 insertions, 0 deletions
diff --git a/desktop/redshift/disable-appindicator.patch b/desktop/redshift/disable-appindicator.patch
new file mode 100644
index 0000000000..ffd2e3ede5
--- /dev/null
+++ b/desktop/redshift/disable-appindicator.patch
@@ -0,0 +1,16 @@
+diff -Nur redshift-1.12.orig/src/redshift-gtk/statusicon.py redshift-1.12/src/redshift-gtk/statusicon.py
+--- redshift-1.12.orig/src/redshift-gtk/statusicon.py 2017-10-19 17:51:59.000000000 -0500
++++ redshift-1.12/src/redshift-gtk/statusicon.py 2021-01-03 21:48:00.721741441 -0600
+@@ -32,11 +32,7 @@
+
+ from gi.repository import Gtk, GLib
+
+-try:
+- gi.require_version('AppIndicator3', '0.1')
+- from gi.repository import AppIndicator3 as appindicator
+-except (ImportError, ValueError):
+- appindicator = None
++appindicator = None
+
+ from .controller import RedshiftController
+ from . import defs
diff --git a/desktop/redshift/redshift.SlackBuild b/desktop/redshift/redshift.SlackBuild
index 4c26391061..055801ccb5 100644
--- a/desktop/redshift/redshift.SlackBuild
+++ b/desktop/redshift/redshift.SlackBuild
@@ -67,6 +67,9 @@ if ! $(command -v python3 &>/dev/null); then
autopoint -f && AUTOPOINT="intltoolize --automake --copy" autoreconf -vif
fi
+# Disable AppIndicator support if desired (uncomment next line)
+# cat $CWD/disable-appindicator.patch | patch -p1 || exit 1
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \