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 |
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 |
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 ] || |