pandora-scripts: Add latest GUI and Bluetooth scripts.
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_switchgui.sh
1 #!/bin/sh
2 launcher=$(zenity --height 240 --list --title="Switch to a different GUI" --text="Please select the GUI you want to switch to.\nNote: All running applications will be terminated!" --column "return" --print-column=1 --hide-column=1 --column "Pick a launcher" "startxfce4" "Switch to Xfce" "startmmenu" "Switch to MiniMenu" "pmenu" "Switch to PMenu" "startnetbooklauncher" "Switch to Netbook Launcher")
3
4 if [ "$launcher" == "" ]; then 
5     exit 0
6 else
7     echo "$launcher" > /tmp/gui.load
8     if [ "$(pidof xfce4-session)" ] 
9       then
10         xfce4-session-logout --logout
11       else
12         killall netbook-launcher-efl
13      fi
14 fi