Logout-button wont run ANY script

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel
Locked
Gabbsmo
Posts: 2
Joined: Sun Mar 22, 2009 9:28 am

Logout-button wont run ANY script

Post by Gabbsmo »

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:

Code: Select all

killall openbox
And the other one:

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
Locked