mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-14 22:59:14 +02:00
- Corrected some caret check logic, updated autostart for xkeysnail
This commit is contained in:
5
xkeysnail-config/limitedadmins
Normal file
5
xkeysnail-config/limitedadmins
Normal file
@@ -0,0 +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
|
@@ -11,5 +11,6 @@ if systemctl -q --user is-enabled keyswap; then
|
||||
systemctl --user disable keyswap
|
||||
fi
|
||||
|
||||
# export DISPLAY={displayid};/usr/bin/xhost +SI:localuser:root
|
||||
mkdir -p /tmp/kinto
|
||||
cp /home/{username}/.config/kinto/kinto.py /tmp/kinto/kinto.py
|
@@ -2,7 +2,7 @@
|
||||
Name=Kinto_xkey
|
||||
GenericName=Kinto_xkey
|
||||
Comment=Make Linux Type Like it's a Mac
|
||||
Exec=/usr/bin/xhost +SI:localuser:root
|
||||
Exec=/bin/bash -c "/usr/bin/xhost +SI:localuser:root && sudo /bin/systemctl restart xkeysnail"
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-GNOME-Autostart-enabled=true
|
@@ -4,7 +4,7 @@ Description=xkeysnail
|
||||
[Service]
|
||||
Type=simple
|
||||
KillMode=process
|
||||
ExecStartPre=/sbin/runuser -l {username} -c /home/{username}/.config/kinto/prexk.sh
|
||||
ExecStartPre=/usr/bin/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
|
||||
|
Reference in New Issue
Block a user