X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-first-run-wizard%2Ffirst-run-wizard.sh;h=a7bfb5dc98a0ee69473e183913b3f18243bafb3d;hb=1ebb54e2f3460c30bd3bb4802bc4b2a5b94a9220;hp=dba1324e391462f7a11860da779af18277157799;hpb=7ea10ae585c05cb1122b20d66b0e3909b2dc3824;p=openpandora.oe.git diff --git a/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh b/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh old mode 100644 new mode 100755 index dba1324..a7bfb5d --- a/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh +++ b/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh @@ -7,6 +7,7 @@ export LANG=en_GB.UTF-8 export GTK2_RC_FILES=/usr/share/themes/Xfce/gtk-2.0/gtkrc +xmodmap /etc/skel/.pndXmodmap # Ensure there is a wheel group for sudoers to be put into. # TODO: Do this somewhere better. @@ -146,18 +147,20 @@ fi # Select the default interface and setup SLiM to pass that as a sesion to ~./.xinitrc -while ! launcher=$(zenity --list --title="Default User Interface" --text="Please choose your default application launcher.\n\nYou can always change this setting later." --column "return" --print-column=1 --hide-column=1 --column "Pick a launcher" "xfce" "Desktop environment (Xfce)" "pmenu" "Gaming-console like launcher (PMenu)") || [ "x$launcher" = "x" ]; do - zenity --title="Error" --error --text="Please select a default launcher." --timeout 6 -done +selection=$(cat /etc/pandora/conf/gui.conf | awk -F\; '{print $1 "\n" $2 }' | zenity --width=500 --height=300 --title="Select the Default GUI" --list --multiple --column "name" --column "description" --text "select defaultgui" ) +echo $selection + +gui=$(grep $selection /etc/pandora/conf/gui.conf | awk -F\; '{print $3}') +stopcommand=$(grep $selection /etc/pandora/conf/gui.conf | awk -F\; '{print $4}') + +echo $gui -if [ $launcher == "xfce" ]; then -# sed -i 's/.*sessions .*/sessions xfce4,pmenu/g' /etc/slim.conf - sed -i 's/.*DEFAULT_SESSION=.*/DEFAULT_SESSION=startxfce4/g' /home/$username/.xinitrc - echo Xfce selected as default interface +if [ $gui ]; then + sed -i "s/.*DEFAULT_SESSION=.*/DEFAULT_SESSION=$gui/g" /home/$username/.xinitrc + echo $selection selected as default interface + zenity --info --title="Selected session" --text "You selected $selection as default setting. You can always change your default GUI later." --timeout 6 else -# sed -i 's/.*sessions .*/sessions pmenu,xfce4/g' /etc/slim.conf - sed -i 's/.*DEFAULT_SESSION=.*/DEFAULT_SESSION=pmenu/g' /home/$username/.xinitrc - echo PMenu selected as default interface + sed -i 's/.*DEFAULT_SESSION=.*/DEFAULT_SESSION=startxfce4/g' /home/$username/.xinitrc fi # ----