From: David-John Willis Date: Tue, 2 Mar 2010 16:02:48 +0000 (+0000) Subject: pandora-first-run-wizard: Add latest version of the script. X-Git-Tag: Release-2010-05/1~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70a318c7d176fcd59ca6bcf866a8d7c800cfe646;p=openpandora.oe.git pandora-first-run-wizard: Add latest version of the script. --- diff --git a/recipes/pandora-system/pandora-first-run-wizard.bb b/recipes/pandora-system/pandora-first-run-wizard.bb index eaf2c68..b26dce4 100755 --- a/recipes/pandora-system/pandora-first-run-wizard.bb +++ b/recipes/pandora-system/pandora-first-run-wizard.bb @@ -2,11 +2,11 @@ DESCRIPTION = "Scripts to support the first run wizard on the OpenPandora." LICENSE = "GPLV2" DEPENDS = "hsetroot zenity dbus" -RDEPENDS = "hsetroot zenity dbus pandora-wallpaper-official tslib tslib-calibrate " +RDEPENDS = "hsetroot zenity dbus pandora-wallpaper-official tslib tslib-calibrate pandora-skel xmodmap" COMPATIBLE_MACHINE = "omap3-pandora" -PR = "r8" +PR = "r10" SRC_URI = " \ file://first-run-wizard.sh \ 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 index dba1324..61f28a3 100644 --- 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,7 +147,7 @@ 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 +while ! launcher=$(zenity --height 250 --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)" "netbooklauncher" "Netbook Launcher") || [ "x$launcher" = "x" ]; do zenity --title="Error" --error --text="Please select a default launcher." --timeout 6 done @@ -154,10 +155,12 @@ 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 -else +elif [ $launcher == "pmenu" ]; then # 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 +elif [ $launcher == "netbooklauncher" ]; then + sed -i 's/.*DEFAULT_SESSION=.*/DEFAULT_SESSION=startnetbooklauncher/g' /home/$username/.xinitrc fi # ----