- Updated xkeysnail installer and permissions

This commit is contained in:
Ben Reaves
2020-04-26 01:23:43 -05:00
parent 2eb5a33b93
commit 315a6a0541
4 changed files with 27 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
# /etc/sudoers.d/limitedadmins
%{username} ALL=NOPASSWD: /bin/systemctl restart xkeysnail
%{username} ALL=NOPASSWD: /bin/systemctl start xkeysnail
%{username} ALL=NOPASSWD: /bin/systemctl stop xkeysnail
%{username} ALL=NOPASSWD: /bin/systemctl status xkeysnail
%{username} ALL=NOPASSWD: {systemctl} restart xkeysnail
%{username} ALL=NOPASSWD: {systemctl} start xkeysnail
%{username} ALL=NOPASSWD: {systemctl} stop xkeysnail
%{username} ALL=NOPASSWD: {systemctl} status xkeysnail

View File

@@ -2,7 +2,7 @@
Name=Kinto_xkey
GenericName=Kinto_xkey
Comment=Make Linux Type Like it's a Mac
Exec=/bin/bash -c "/usr/bin/xhost +SI:localuser:root && sudo /bin/systemctl restart xkeysnail"
Exec=/bin/bash -c "{xhost} +SI:localuser:root && sudo {systemctl} restart xkeysnail"
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true

View File

@@ -4,7 +4,7 @@ Description=xkeysnail
[Service]
Type=simple
KillMode=process
ExecStartPre=/usr/bin/xhost +SI:localuser:root;/sbin/runuser -l {username} -c /home/{username}/.config/kinto/prexk.sh
ExecStartPre=/bin/bash -c "{xhost} +SI:localuser:root && /sbin/runuser -l {username} -c /home/{username}/.config/kinto/prexk.sh"
ExecStart=/usr/bin/sudo /bin/bash -c '/home/{username}/.config/kinto/xkeystart.sh "/tmp/kinto/kinto.py"'
ExecStop=/usr/bin/sudo /usr/bin/killall xkeysnail
Restart=on-failure