Magellan Linux

Diff of /alx-src/branches/alxconf-060/functions/config_sessions.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3504 by niro, Thu Apr 19 13:27:58 2012 UTC revision 6763 by niro, Tue Jul 21 09:22:02 2015 UTC
# Line 33  generate_ica_session_file() Line 33  generate_ica_session_file()
33   --domain) shift; ses_domain="$1" ;;   --domain) shift; ses_domain="$1" ;;
34   --server) shift; ses_browseradrs="$1" ;;   --server) shift; ses_browseradrs="$1" ;;
35   --colordepth) shift; ses_colors="$1" ;;   --colordepth) shift; ses_colors="$1" ;;
36           esac   esac
37   shift   shift
38   done   done
39    
# Line 59  generate_ica_session_file() Line 59  generate_ica_session_file()
59   # the first address must be named TcpBrowserAddress, but not TcpBrowserAddress1 !!   # the first address must be named TcpBrowserAddress, but not TcpBrowserAddress1 !!
60   [[ ${i} -eq 1 ]] && num=""   [[ ${i} -eq 1 ]] && num=""
61   addconfig "TcpBrowserAddress${num}=${server}"   addconfig "TcpBrowserAddress${num}=${server}"
62     addconfig "HttpBrowserAddress${num}=${server}"
63   done   done
64    
65   addconfig 'ScreenPercent=0'   addconfig 'ScreenPercent=0'
# Line 104  generate_program_sh() Line 105  generate_program_sh()
105   --param|-p) shift; param="$1" ;;   --param|-p) shift; param="$1" ;;
106   --dest|-d) shift; dest="$1" ;;   --dest|-d) shift; dest="$1" ;;
107   --workdir|-w) shift; workdir="$1" ;;   --workdir|-w) shift; workdir="$1" ;;
108           esac   esac
109   shift   shift
110   done   done
111    
# Line 149  generate_icon() Line 150  generate_icon()
150   --icon-width|-w) shift; iwidth="$1" ;;   --icon-width|-w) shift; iwidth="$1" ;;
151   --icon-height|-h) shift; iheight="$1" ;;   --icon-height|-h) shift; iheight="$1" ;;
152   --default-icon) shift; deficon="$1" ;;   --default-icon) shift; deficon="$1" ;;
153           esac   esac
154   shift   shift
155   done   done
156    
# Line 263  generate_all_desktop_icons() Line 264  generate_all_desktop_icons()
264    
265   generate_icon \   generate_icon \
266   --name "${cfg_sessions_session}" \   --name "${cfg_sessions_session}" \
267   --command "nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_sessions_filename})" \   --command "wfica-launcher ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_sessions_filename})" \
268   --icon "${ALX_SESSIONS_ICONS}/$(fix_whitespaces ${cfg_sessions_session}).png" \   --icon "${ALX_SESSIONS_ICONS}/$(fix_whitespaces ${cfg_sessions_session}).png" \
269   --dest "${dest}/$(fix_whitespaces ${cfg_sessions_session}).lnk" \   --dest "${dest}/$(fix_whitespaces ${cfg_sessions_session}).lnk" \
270   --xres "${x}" \   --xres "${x}" \
# Line 300  generate_all_desktop_icons() Line 301  generate_all_desktop_icons()
301   generate_icon \   generate_icon \
302   --name "${cfg_other_menuitems_name}" \   --name "${cfg_other_menuitems_name}" \
303   --command "${progsh_path}/$(fix_whitespaces ${cfg_other_menuitems_name})" \   --command "${progsh_path}/$(fix_whitespaces ${cfg_other_menuitems_name})" \
304   --icon "${ALX_SESSIONS_ICONS}/$(fix_whitespaces ${cfg_other_menuitems_name}).png" \   --icon "${ALX_SESSIONS_ICONS}/$(fix_whitespaces ${cfg_other_menuitems_icon}).png" \
305   --dest "${dest}/$(fix_whitespaces ${cfg_other_menuitems_name}).lnk" \   --dest "${dest}/$(fix_whitespaces ${cfg_other_menuitems_name}).lnk" \
306   --xres "${x}" \   --xres "${x}" \
307   --yres "${y}" \   --yres "${y}" \
# Line 520  config_sessions() Line 521  config_sessions()
521   if [[ ! -z ${cfg_autostart_session} ]]   if [[ ! -z ${cfg_autostart_session} ]]
522   then   then
523   # sleep one second to wait until busybox is fully initialized and the screen is really centered   # sleep one second to wait until busybox is fully initialized and the screen is really centered
524   addconfig "[startup] {sleep 1 && nohup nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_autostart_session}) &}"   addconfig "[startup] {sleep 1 && wfica-launcher ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_autostart_session}) &}"
525   fi   fi
526    
527   # fluxbox hotkeys   # fluxbox hotkeys
# Line 558  config_sessions() Line 559  config_sessions()
559   --colordepth "${cfg_graphic_depth}"   --colordepth "${cfg_graphic_depth}"
560    
561   # fluxbox menusession   # fluxbox menusession
562   addconfig "[exec] (${cfg_sessions_session}) {nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_sessions_filename})}"   addconfig "[exec] (${cfg_sessions_session}) {wfica-launcher ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_sessions_filename})}"
563   done   done
564    
565   # delete all progs   # delete all progs

Legend:
Removed from v.3504  
changed lines
  Added in v.6763