22 |
--domain) shift; domain="$1" ;; |
--domain) shift; domain="$1" ;; |
23 |
--password) shift; password="$1" ;; |
--password) shift; password="$1" ;; |
24 |
--serverlist) shift; serverlist="$1" ;; |
--serverlist) shift; serverlist="$1" ;; |
25 |
|
--autostart) shift; autostart="$1" ;; |
26 |
esac |
esac |
27 |
shift |
shift |
28 |
done |
done |
29 |
|
|
30 |
[[ -n ${method} ]] || die "No method given" |
[[ -n ${method} ]] || die "No method given" |
31 |
|
[[ -n ${autostart} ]] || autostart=0 |
32 |
|
|
33 |
case "${method}" in |
case "${method}" in |
34 |
add) |
add) |
123 |
# generate fluxbox menu entry |
# generate fluxbox menu entry |
124 |
${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "${MCORE_LIBDIR}/launch-ica ${icafile}" && |
${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "${MCORE_LIBDIR}/launch-ica ${icafile}" && |
125 |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
126 |
|
# add autostart |
127 |
|
if [[ ${autostart} = 1 ]] |
128 |
|
then |
129 |
|
${MCORE_LIBDIR}/fluxbox-autostart --add --name "${name}" --exec "${MCORE_LIBDIR}/launch-ica ${icafile}" && |
130 |
|
${MCORE_LIBDIR}/fluxbox-rebuild-autostart |
131 |
|
fi |
132 |
fi |
fi |
133 |
if is_provided idesk |
if is_provided idesk |
134 |
then |
then |
147 |
then |
then |
148 |
${MCORE_LIBDIR}/fluxbox-menuitem --del --name "${name}" && |
${MCORE_LIBDIR}/fluxbox-menuitem --del --name "${name}" && |
149 |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
150 |
|
${MCORE_LIBDIR}/fluxbox-autostart --del --name "${name}" && |
151 |
|
${MCORE_LIBDIR}/fluxbox-rebuild-autostart |
152 |
fi |
fi |
153 |
if is_provided idesk |
if is_provided idesk |
154 |
then |
then |