1. Start shell script with shell built-in command "." for iBus related environment variable 2. Replace "exit" to "return" for command ".". --- current/system-overlay/usr/local/share/pcbsd/xstartup/checkwelcome.sh.orig 2011-09-10 00:16:02.584919483 +0900 +++ current/system-overlay/usr/local/share/pcbsd/xstartup/checkwelcome.sh 2011-09-10 00:17:09.310518552 +0900 @@ -1,7 +1,7 @@ #!/bin/sh # Check if we need to show the welcome application -if [ "`id -u`" = "0" ] ; then exit ; fi +if [ "`id -u`" = "0" ] ; then return ; fi if [ ! -f "${HOME}/.config/hide-welcome" ] ; then (sleep 30 ; pc-welcome ) & --- current/system-overlay/usr/local/share/pcbsd/xstartup/life-preserver.sh.orig 2011-09-10 00:16:19.167565711 +0900 +++ current/system-overlay/usr/local/share/pcbsd/xstartup/life-preserver.sh 2011-09-10 00:16:51.672831867 +0900 @@ -1,6 +1,6 @@ #!/bin/sh # Start life-preserver with login -if [ "`id -u`" = "0" ] ; then exit ; fi +if [ "`id -u`" = "0" ] ; then return ; fi (sleep 10 ; sudo life-preserver -tray) & --- current/system-overlay/usr/local/share/pcbsd/xstartup/net-trays.sh.orig 2011-09-10 00:16:27.862903748 +0900 +++ current/system-overlay/usr/local/share/pcbsd/xstartup/net-trays.sh 2011-09-10 00:16:59.840150046 +0900 @@ -1,7 +1,7 @@ #!/bin/sh # Script to check if there are any wireless networks to display on the tray -if [ "`id -u`" = "0" ] ; then exit ; fi +if [ "`id -u`" = "0" ] ; then return ; fi ifconfig wlan0 >/dev/null 2>/dev/null if [ $? -eq 0 ] ; then --- current/system-overlay/usr/local/share/pcbsd/xstartup/vkeyboard.sh.orig 2011-09-10 00:16:35.518203130 +0900 +++ current/system-overlay/usr/local/share/pcbsd/xstartup/vkeyboard.sh 2011-09-10 00:16:43.993531751 +0900 @@ -3,7 +3,7 @@ # See if we have a touch-screen auto-configured cat /etc/X11/xorg.conf | grep -q "Panel0" >/dev/null 2>/dev/null -if [ $? -ne 0 ] ; then exit 0 ; fi +if [ $? -ne 0 ] ; then return 0 ; fi if [ ! -e "$HOME/.florence.conf" ] ; then cp /usr/local/share/florence/florence.conf ${HOME}/.florence.conf --- current/system-overlay/usr/share/skel/.xprofile.orig 2011-09-09 22:56:55.377571392 +0900 +++ current/system-overlay/usr/share/skel/.xprofile 2011-09-10 00:17:53.105225075 +0900 @@ -10,5 +10,5 @@ # Check for any specific PC-BSD apps we need to start at login for i in `ls /usr/local/share/pcbsd/xstartup/*` do - if [ -x "${i}" ] ; then ${i} ; fi + if [ -x "${i}" ] ; then . ${i} ; fi done