Magellan Linux

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

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

revision 2641 by niro, Fri Sep 18 13:07:47 2015 UTC revision 2642 by niro, Thu Oct 8 10:23:56 2015 UTC
# Line 32  do Line 32  do
32   --domain) shift; domain="$1" ;;   --domain) shift; domain="$1" ;;
33   --password) shift; password="$1" ;;   --password) shift; password="$1" ;;
34   --store) shift; store="$1" ;;   --store) shift; store="$1" ;;
35     --autostart) shift; autostart="$1" ;;
36   esac   esac
37   shift   shift
38  done  done
39    
40  [[ -n ${method} ]] || die "No method given"  [[ -n ${method} ]] || die "No method given"
41    [[ -n ${autostart} ]] || autostart=0
42    
43  case "${method}" in  case "${method}" in
44   add)   add)
# Line 65  case "${method}" in Line 67  case "${method}" in
67   # generate fluxbox menu entry   # generate fluxbox menu entry
68   ${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "${storefront_starter}" &&   ${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "${storefront_starter}" &&
69   ${MCORE_LIBDIR}/fluxbox-rebuild-menu   ${MCORE_LIBDIR}/fluxbox-rebuild-menu
70     # add autostart
71     if [[ ${autostart} = 1 ]]
72     then
73     ${MCORE_LIBDIR}/fluxbox-autostart --add --name "${name}" --exec "${storefront_starter}" &&
74     ${MCORE_LIBDIR}/fluxbox-rebuild-autostart
75     fi
76   fi   fi
77   if is_provided idesk   if is_provided idesk
78   then   then
# Line 83  case "${method}" in Line 91  case "${method}" in
91   then   then
92   ${MCORE_LIBDIR}/fluxbox-menuitem --del  --name "${name}" &&   ${MCORE_LIBDIR}/fluxbox-menuitem --del  --name "${name}" &&
93   ${MCORE_LIBDIR}/fluxbox-rebuild-menu   ${MCORE_LIBDIR}/fluxbox-rebuild-menu
94     ${MCORE_LIBDIR}/fluxbox-autostart --del  --name "${name}" &&
95     ${MCORE_LIBDIR}/fluxbox-rebuild-autostart
96   fi   fi
97   if is_provided idesk   if is_provided idesk
98   then   then

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