Magellan Linux

Diff of /alx-src/branches/alxconf-060/bin/storefront-resolver.sh

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

revision 6778 by niro, Tue Jul 21 12:17:14 2015 UTC revision 6779 by niro, Tue Jul 21 14:45:41 2015 UTC
# Line 34  then Line 34  then
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)
# Line 49  case ${CMD} in Line 59  case ${CMD} in
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

Legend:
Removed from v.6778  
changed lines
  Added in v.6779