Logout-button wont run ANY script
Posted: Sun Mar 22, 2009 9:32 am
I've been trying two commands to logout from my openbox session and return to GDM. Both work from the terminal but not form the Logout-button in LXPanel.
Distro: Ubuntu 8.10
WM: openbox
Session Manager: GDM
The first is simply:
And the other one:
UPDATE: Same issue on Ubuntu-forums: http://ubuntuforums.org/showthread.php? ... ost6948315
Distro: Ubuntu 8.10
WM: openbox
Session Manager: GDM
The first is simply:
Code: Select all
killall openbox
Code: Select all
~/.scripts/shutdown
Code: Select all
#!/bin/bash
gmessage "Are you sure you want to shut down your computer?" -center -title "Take action" -font "Sans bold 10" -default "Cancel" -buttons "_Cancel":1,"_Log out":2,"_Reboot":3,"_Shut down":4 >/dev/null
case $? in
1)
echo "Exit";;
2)
killall openbox;;
3)
sudo shutdown -r now;;
4)
sudo shutdown -h now;;
esac
UPDATE: Same issue on Ubuntu-forums: http://ubuntuforums.org/showthread.php? ... ost6948315