Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/citrix/citrix-session.in

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

revision 2634 by niro, Tue Sep 29 11:43:12 2015 UTC revision 2642 by niro, Thu Oct 8 10:23:56 2015 UTC
# Line 22  do Line 22  do
22   --domain) shift; domain="$1" ;;   --domain) shift; domain="$1" ;;
23   --password) shift; password="$1" ;;   --password) shift; password="$1" ;;
24   --serverlist) shift; serverlist="$1" ;;   --serverlist) shift; serverlist="$1" ;;
25     --autostart) shift; autostart="$1" ;;
26   esac   esac
27   shift   shift
28  done  done
29    
30  [[ -n ${method} ]] || die "No method given"  [[ -n ${method} ]] || die "No method given"
31    [[ -n ${autostart} ]] || autostart=0
32    
33  case "${method}" in  case "${method}" in
34   add)   add)
# Line 119  case "${method}" in Line 121  case "${method}" in
121   if is_provided fluxbox   if is_provided fluxbox
122   then   then
123   # generate fluxbox menu entry   # generate fluxbox menu entry
124   ${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "wfica ${icafile}" &&   ${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "${MCORE_LIBDIR}/launch-ica ${icafile}" &&
125   ${MCORE_LIBDIR}/fluxbox-rebuild-menu   ${MCORE_LIBDIR}/fluxbox-rebuild-menu
126     # add autostart
127     if [[ ${autostart} = 1 ]]
128     then
129     ${MCORE_LIBDIR}/fluxbox-autostart --add --name "${name}" --exec "${MCORE_LIBDIR}/launch-ica ${icafile}" &&
130     ${MCORE_LIBDIR}/fluxbox-rebuild-autostart
131     fi
132   fi   fi
133   if is_provided idesk   if is_provided idesk
134   then   then
135   # generate idesk desktop icon   # generate idesk desktop icon
136   ${MCORE_LIBDIR}/idesk-generate-icon-info --add --name "${name}" --command "wfica ${icafile}" --icon default.png &&   ${MCORE_LIBDIR}/idesk-generate-icon-info --add --name "${name}" --command "${MCORE_LIBDIR}/launch-ica ${icafile}" --icon default.png &&
137   ${MCORE_LIBDIR}/idesk-generate-all-desktop-icons   ${MCORE_LIBDIR}/idesk-generate-all-desktop-icons
138   fi   fi
139   ;;   ;;
# Line 139  case "${method}" in Line 147  case "${method}" in
147   then   then
148   ${MCORE_LIBDIR}/fluxbox-menuitem --del  --name "${name}" &&   ${MCORE_LIBDIR}/fluxbox-menuitem --del  --name "${name}" &&
149   ${MCORE_LIBDIR}/fluxbox-rebuild-menu   ${MCORE_LIBDIR}/fluxbox-rebuild-menu
150     ${MCORE_LIBDIR}/fluxbox-autostart --del  --name "${name}" &&
151     ${MCORE_LIBDIR}/fluxbox-rebuild-autostart
152   fi   fi
153   if is_provided idesk   if is_provided idesk
154   then   then

Legend:
Removed from v.2634  
changed lines
  Added in v.2642