Created right click menu handler
This commit is contained in:
23
distfiles/usr/local/bin/kiosk_rightclickmenu
Executable file
23
distfiles/usr/local/bin/kiosk_rightclickmenu
Executable 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
|
||||
Reference in New Issue
Block a user