- WIP Updated installer to setup budgie system tray

This commit is contained in:
Ben Reaves
2020-07-31 21:22:50 -05:00
parent 83aaca7f6b
commit 57d56261ed
5 changed files with 62 additions and 27 deletions

View File

@@ -3,4 +3,4 @@
%{username} ALL=NOPASSWD: {systemctl} start xkeysnail
%{username} ALL=NOPASSWD: {systemctl} stop xkeysnail
%{username} ALL=NOPASSWD: {systemctl} status xkeysnail
%{username} ALL=NOPASSWD: {systemctl} is-active --quiet xkeysnail
%{username} ALL=NOPASSWD: {systemctl} is-active --quiet xkeysnail

View File

@@ -6,4 +6,4 @@ Description=Kinto Applet
Authors=Ben Reaves
Copyright=Copyright © 2020 Ben Reaves
Website=github.com/rbreaves
Icon=kinto-invert
Icon=kinto-solid

View File

@@ -63,7 +63,7 @@ class KintoApplet(Budgie.Applet):
chkautostart_id=0
autostart_bool = False
subprocess.Popen(['sh',homedir+'/.config/kinto/logoff.sh'])
# subprocess.Popen(['sh',homedir+'/.config/kinto/logoff.sh'])
with open(kconfig) as configfile:
autostart_line = configfile.read().split('\n')[1]
@@ -87,11 +87,11 @@ class KintoApplet(Budgie.Applet):
self.checkbox_autostart.set_label("Autostart")
# self.checkbox_autostart.modify_fg(Gtk.STATE_NORMAL, Gtk.Gdk.color_parse('#366B7E'));
if self.autostart_bool:
subprocess.Popen(['sudo', 'systemctl','restart','xkeysnail'])
# subprocess.Popen(['sudo', 'systemctl','restart','xkeysnail'])
self.checkbox_autostart.set_active(True)
self.chkautostart_id = self.checkbox_autostart.connect("clicked",self.setAutostart,False)
else:
subprocess.Popen(['sudo', 'systemctl','stop','xkeysnail'])
# subprocess.Popen(['sudo', 'systemctl','stop','xkeysnail'])
self.checkbox_autostart.set_active(False)
self.chkautostart_id = self.checkbox_autostart.connect("clicked",self.setAutostart,True)
# self.chkautostart_id = self.checkbox_autostart.connect("clicked",self.setAutostart,True)

View File

@@ -5,7 +5,6 @@ Description=xkeysnail
Type=simple
KillMode=process
ExecStart=/usr/bin/sudo /bin/bash -c '/usr/bin/xhost +SI:localuser:root && /usr/local/bin/xkeysnail --quiet --watch {homedir}/.config/kinto/kinto.py'
ExecStop=/usr/bin/pkill -f xkeysnail
Restart=on-failure
RestartSec=3
Environment=DISPLAY={displayid}