mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-14 14:49:14 +02:00
- WIP Updated installer to setup budgie system tray
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -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}
|
||||
|
Reference in New Issue
Block a user