34 |
USE_XMESSAGE=1 |
USE_XMESSAGE=1 |
35 |
fi |
fi |
36 |
|
|
37 |
|
storefront_enumerate() |
38 |
|
{ |
39 |
|
"${BROWSER}" -E -U "${USER}" -P "${PASS}" -D "${DOMAIN}" "${STORE}" |
40 |
|
} |
41 |
|
|
42 |
|
storefront_launch() |
43 |
|
{ |
44 |
|
"${BROWSER}" -L "${APP}" -U "${USER}" -P "${PASS}" -D "${DOMAIN}" "${STORE}" |
45 |
|
} |
46 |
|
|
47 |
case ${CMD} in |
case ${CMD} in |
48 |
enumerate) |
enumerate) |
49 |
# enumerate apps |
# enumerate apps |
50 |
"${BROWSER}" -E -U "${USER}" -P "${PASS}" -D "${DOMAIN}" "${STORE}" |
storefront_enumerate |
51 |
;; |
;; |
52 |
|
|
53 |
launch) |
launch) |
59 |
|
|
60 |
" & |
" & |
61 |
fi |
fi |
62 |
if "${BROWSER}" -L "${APP}" -U "${USER}" -P "${PASS}" -D "${DOMAIN}" "${STORE}" |
# always enumerate all apps to fill the cache or launch will not work |
63 |
|
# and always enumerate if the cache is older than one day |
64 |
|
if [ ! -f ~/.ICAClient/cache/Citrix/PNAgent/AppCache/appdata.xml ] || |
65 |
|
[[ ! -z $(find ~/.ICAClient/cache/Citrix/PNAgent/AppCache/appdata.xml -mtime +1) ]] |
66 |
|
then |
67 |
|
storefront_enumerate |
68 |
|
fi |
69 |
|
if storefront_launch |
70 |
then |
then |
71 |
if [[ ${USE_XMESSAGE} = 1 ]] |
if [[ ${USE_XMESSAGE} = 1 ]] |
72 |
then |
then |