From e5b2ef8155e35a40545e0d54c5450336eec4109a Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Thu, 27 May 2021 18:59:36 -0500 Subject: [PATCH] Added TERM env fix to remove garbage in syslog. Closes #515 --- linux/gui/kinto-gui.py | 4 ++-- linux/trayapps/appindicator/kintotray.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linux/gui/kinto-gui.py b/linux/gui/kinto-gui.py index 37c0b29..5c50528 100755 --- a/linux/gui/kinto-gui.py +++ b/linux/gui/kinto-gui.py @@ -628,9 +628,9 @@ class MyWindow(Gtk.Window): time.sleep(1) global child_pid if sysv: - self.kinto_status = Popen("while :; do clear; pgrep 'xkeysnail'; sleep 2; done", stdout=PIPE, shell=True) + self.kinto_status = Popen("export TERM=xterm-color;while :; do clear; pgrep 'xkeysnail'; sleep 2; done", stdout=PIPE, shell=True) else: - self.kinto_status = Popen("while :; do clear; systemctl is-active xkeysnail; sleep 2; done", stdout=PIPE, shell=True) + self.kinto_status = Popen("export TERM=xterm-color;while :; do clear; systemctl is-active xkeysnail; sleep 2; done", stdout=PIPE, shell=True) child_pid = self.kinto_status.pid self.menuitem_systray.disconnect(self.menuitem_systray.signal_id) self.menuitem_systray.set_active(False) diff --git a/linux/trayapps/appindicator/kintotray.py b/linux/trayapps/appindicator/kintotray.py index d6ce5e4..b6cae9f 100755 --- a/linux/trayapps/appindicator/kintotray.py +++ b/linux/trayapps/appindicator/kintotray.py @@ -35,9 +35,9 @@ class Indicator(): except: sysv = 2 if sysv: - kinto_status = Popen("while :; do clear; pgrep 'xkeysnail' && echo 'active'; sleep 2; done", stdout=PIPE, shell=True) + kinto_status = Popen("export TERM=xterm-color;while :; do clear; pgrep 'xkeysnail' && echo 'active'; sleep 2; done", stdout=PIPE, shell=True) else: - kinto_status = Popen("while :; do clear; systemctl is-active xkeysnail; sleep 2; done", stdout=PIPE, shell=True) + kinto_status = Popen("export TERM=xterm-color;while :; do clear; systemctl is-active xkeysnail; sleep 2; done", stdout=PIPE, shell=True) child_pid = kinto_status.pid homedir = os.path.expanduser("~")