3 selection=$(cat /etc/pandora/conf/gui.conf | grep -v NOSWITCH | awk -F\; '{print $1 "\n" $2 }' | zenity --width=500 --height=300 --title="Switch to a different GUI" --list --column "name" --column "description" --text "Select a GUI you want to switch to" )
6 if [ $selection ]; then
8 gui=$(grep $selection /etc/pandora/conf/gui.conf | awk -F\; '{print $3}')
9 stopnew=$(grep $selection /etc/pandora/conf/gui.conf | awk -F\; '{print $4}')
14 echo "$gui" > /tmp/gui.load
15 echo "$stopnew" > /tmp/gui.stopnew
16 echo $selection will be started
22 echo "Nothing selected."