--- alx-src/branches/alxconf-060/functions/config_sessions.sh 2011/05/18 14:55:02 2166 +++ alx-src/branches/alxconf-060/functions/config_sessions.sh 2011/06/14 13:51:20 2381 @@ -207,13 +207,13 @@ xres="$(( ${xres} - 120 ))" yres="$(( ${yres} - 80 ))" - # basic config - cat ${ALX_SKELETONS}/xtdesktop/xtdeskrc > ${ALX_UNPRIV_HOME}/.xtdeskrc - # clean desktop icon location [ -d ${ALX_UNPRIV_HOME}/.xtdesktop ] && rm -rf ${ALX_UNPRIV_HOME}/.xtdesktop install -d ${ALX_UNPRIV_HOME}/.xtdesktop + # basic config + cat ${ALX_SKELETONS}/xtdesktop/xtdeskrc > ${ALX_UNPRIV_HOME}/.xtdesktop/xtdeskrc + # default settings declare -i x=30 declare -i y=30 @@ -282,7 +282,7 @@ generate_icon \ --name "${cfg_other_menuitems_name}" \ - --command "${progsh_path}/$(fix_whitespaces ${cfg_other_menuitems_exec})" \ + --command "${progsh_path}/$(fix_whitespaces ${cfg_other_menuitems_name})" \ --icon "${ALX_SESSIONS_ICONS}/$(fix_whitespaces ${cfg_other_menuitems_name}).png" \ --dest "${ALX_UNPRIV_HOME}/.xtdesktop/$(fix_whitespaces ${cfg_other_menuitems_name}).lnk" \ --xres "${x}" \ @@ -370,7 +370,8 @@ # add autostart session if [[ ! -z ${cfg_autostart_session} ]] then - addconfig "[startup] {nohup nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_autostart_session}) &}" + # sleep one second to wait until busybox is fully initialized and the screen is really centered + addconfig "[startup] {sleep 1 && nohup nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_autostart_session}) &}" fi # fluxbox hotkeys