Created right click menu handler

This commit is contained in:
2026-03-05 14:03:00 -05:00
parent a4b176e7c6
commit 8beeeac490

View File

@@ -0,0 +1,23 @@
#!/bin/bash
xmessage -buttons "Cancel:0,Reload:1,Reboot:2,Power off:3" -default "Cancel" -center -file /etc/openkiosk/help.txt
# Check the exit code of the button pressed
case $? in
0)
true
;;
1)
pkill chromium
pkill xpdf
;;
2)
/usr/sbin/shutdown -r now
;;
3)
/usr/sbin/shutdown -P now
;;
*)
false
;;
esac