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>
This commit is contained in:
Robby Workman 2021-01-03 22:05:08 -06:00 committed by Willy Sudiarto Raharjo
parent 3da1fdd4c3
commit 154ccd9fe6
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 19 additions and 0 deletions

View file

@ -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

View file

@ -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 \