Magellan Linux

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

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

revision 2401 by niro, Fri Aug 28 10:41:28 2015 UTC revision 2402 by niro, Fri Aug 28 11:01:50 2015 UTC
# Line 14  fi Line 14  fi
14  if [[ -e ${STOREBROWSE_EXECUTABLE} ]]  if [[ -e ${STOREBROWSE_EXECUTABLE} ]]
15  then  then
16   BROWSER=${STOREBROWSE_EXECUTABLE}   BROWSER=${STOREBROWSE_EXECUTABLE}
  ADDSTORE_REQUIRED=0  
17  # use old pnabrowse  # use old pnabrowse
18  elif [[ -e ${PNABROWSE_EXECUTABLE} ]]  elif [[ -e ${PNABROWSE_EXECUTABLE} ]]
19  then  then
20   BROWSER=${PNABROWSE_EXECUTABLE}   BROWSER=${PNABROWSE_EXECUTABLE}
21   ADDSTORE_REQUIRED=0   # newer use storefront subscriptions with pnabrowse
22     STOREFRONT_ADDSTORE_REQUIRED=0
23     STOREFRONT_SUBSCRIBE_APP=0
24  else  else
25   echo "No Citrix browser found."   echo "No Citrix browser found."
26   exit 1   exit 1
# Line 116  fi Line 117  fi
117  case ${CMD} in  case ${CMD} in
118   enumerate)   enumerate)
119   # enumerate apps   # enumerate apps
120   if [[ ${ADDSTORE_REQUIRED} = 1 ]]   if [[ ${STOREFRONT_ADDSTORE_REQUIRED} = 1 ]]
121   then   then
122   storefront_add_store   storefront_add_store
123   fi   fi
# Line 132  case ${CMD} in Line 133  case ${CMD} in
133    
134  " &  " &
135   fi   fi
136   if [[ ${ADDSTORE_REQUIRED} = 1 ]]   if [[ ${STOREFRONT_ADDSTORE_REQUIRED} = 1 ]]
137   then   then
138   storefront_add_store   storefront_add_store
139     fi
140     if [[ ${STOREFRONT_SUBSCRIBE_APP} = 1 ]]
141     then
142   storefront_subscribe_app   storefront_subscribe_app
143   else   fi
144     if [[ ${BROWSER} = ${PNABROWSE_EXECUTABLE} ]]
145     then
146   # always enumerate all apps to fill the cache or launch will not work   # always enumerate all apps to fill the cache or launch will not work
147   # and always enumerate if the cache is older than one day   # and always enumerate if the cache is older than one day
148   if [ ! -f ~/.ICAClient/cache/Citrix/PNAgent/AppCache/appdata.xml ] ||   if [ ! -f ~/.ICAClient/cache/Citrix/PNAgent/AppCache/appdata.xml ] ||

Legend:
Removed from v.2401  
changed lines
  Added in v.2402