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 2434 by niro, Wed Jun 15 13:00:27 2011 UTC revision 2435 by niro, Thu Jun 16 16:21:11 2011 UTC
# Line 19  generate_ica_session_file() Line 19  generate_ica_session_file()
19   local ses_domain   local ses_domain
20   local ses_password   local ses_password
21   local ses_browseradrs   local ses_browseradrs
22     local ses_colors
23   local CONFIG   local CONFIG
24    
25   # very basic getops   # very basic getops
# Line 31  generate_ica_session_file() Line 32  generate_ica_session_file()
32   --password) shift; ses_password="$1" ;;   --password) shift; ses_password="$1" ;;
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" ;;
36           esac           esac
37   shift   shift
38   done   done
# Line 65  generate_ica_session_file() Line 67  generate_ica_session_file()
67   addconfig "[${ses_session}]"   addconfig "[${ses_session}]"
68   addconfig "Address=${ses_session}"   addconfig "Address=${ses_session}"
69   addconfig "InitialProgram=#${ses_session}"   addconfig "InitialProgram=#${ses_session}"
70    
71     # convert to ica session file values
72     case ${ses_colors} in
73     24|32) ses_colors="8";;
74     16) ses_colors="4";;
75     8) ses_colors="2";;
76     *) ses_colors="4";; # default to 16bit
77     esac
78     addconfig "DesiredColor=${ses_colors}"
79   addconfig 'TransportDriver=TCP/IP'   addconfig 'TransportDriver=TCP/IP'
80   addconfig 'WinStationDriver=ICA 3.0'   addconfig 'WinStationDriver=ICA 3.0'
81   addconfig "ClearPassword=${ses__password}"   addconfig "ClearPassword=${ses__password}"
# Line 376  config_sessions() Line 387  config_sessions()
387   evaluate_table cfg_screensaver   evaluate_table cfg_screensaver
388   # get autostart settings   # get autostart settings
389   evaluate_table cfg_autostart   evaluate_table cfg_autostart
390     # get current color depth
391     evaluate_table cfg_graphic
392    
393   # now setup fluxbox for user station   # now setup fluxbox for user station
394    
# Line 441  config_sessions() Line 454  config_sessions()
454   --username "${cfg_sessions_username}" \   --username "${cfg_sessions_username}" \
455   --password "${cfg_sessions_password}" \   --password "${cfg_sessions_password}" \
456   --domain "${cfg_sessions_domain}" \   --domain "${cfg_sessions_domain}" \
457   --server "${cfg_sessions_browseradrs}"   --server "${cfg_sessions_browseradrs}" \
458     --colordepth "${cfg_graphic_depth}"
459    
460   # fluxbox menusession   # fluxbox menusession
461   addconfig "[exec] (${cfg_sessions_session}) {nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_sessions_filename})}"   addconfig "[exec] (${cfg_sessions_session}) {nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_sessions_filename})}"

Legend:
Removed from v.2434  
changed lines
  Added in v.2435