32 |
--domain) shift; domain="$1" ;; |
--domain) shift; domain="$1" ;; |
33 |
--password) shift; password="$1" ;; |
--password) shift; password="$1" ;; |
34 |
--store) shift; store="$1" ;; |
--store) shift; store="$1" ;; |
35 |
|
--autostart) shift; autostart="$1" ;; |
36 |
esac |
esac |
37 |
shift |
shift |
38 |
done |
done |
39 |
|
|
40 |
[[ -n ${method} ]] || die "No method given" |
[[ -n ${method} ]] || die "No method given" |
41 |
|
[[ -n ${autostart} ]] || autostart=0 |
42 |
|
|
43 |
case "${method}" in |
case "${method}" in |
44 |
add) |
add) |
67 |
# generate fluxbox menu entry |
# generate fluxbox menu entry |
68 |
${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "${storefront_starter}" && |
${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "${storefront_starter}" && |
69 |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
70 |
|
# add autostart |
71 |
|
if [[ ${autostart} = 1 ]] |
72 |
|
then |
73 |
|
${MCORE_LIBDIR}/fluxbox-autostart --add --name "${name}" --exec "${storefront_starter}" && |
74 |
|
${MCORE_LIBDIR}/fluxbox-rebuild-autostart |
75 |
|
fi |
76 |
fi |
fi |
77 |
if is_provided idesk |
if is_provided idesk |
78 |
then |
then |
91 |
then |
then |
92 |
${MCORE_LIBDIR}/fluxbox-menuitem --del --name "${name}" && |
${MCORE_LIBDIR}/fluxbox-menuitem --del --name "${name}" && |
93 |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
94 |
|
${MCORE_LIBDIR}/fluxbox-autostart --del --name "${name}" && |
95 |
|
${MCORE_LIBDIR}/fluxbox-rebuild-autostart |
96 |
fi |
fi |
97 |
if is_provided idesk |
if is_provided idesk |
98 |
then |
then |