38 |
|
|
39 |
addconfig '#!/bin/bash' |
addconfig '#!/bin/bash' |
40 |
addconfig "${MCORE_LIBDIR}/storefront-resolver launch '${user}' '${password}' '${domain}' '${session}'" |
addconfig "${MCORE_LIBDIR}/storefront-resolver launch '${user}' '${password}' '${domain}' '${session}'" |
41 |
|
chmod +x "${storefront_starter}" |
42 |
|
|
43 |
if is_provided fluxbox |
if is_provided fluxbox |
44 |
then |
then |
45 |
# generate fluxbox menu entry |
# generate fluxbox menu entry |
46 |
${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "bash ${storefront_starter}" && |
${MCORE_LIBDIR}/fluxbox-menuitem --add --name "${name}" --exec "${storefront_starter}" && |
47 |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
48 |
fi |
fi |
49 |
|
if is_provided idesk |
50 |
|
then |
51 |
|
# generate idesk desktop icon |
52 |
|
${MCORE_LIBDIR}/idesk-generate-icon-info -add --name "{name}" --command "${storefront_starter}" --icon default.png && |
53 |
|
${MCORE_LIBDIR}/idesk-generate-all-desktop-icons |
54 |
|
fi |
55 |
;; |
;; |
56 |
|
|
57 |
del) |
del) |
64 |
${MCORE_LIBDIR}/fluxbox-menuitem --del --name "${name}" && |
${MCORE_LIBDIR}/fluxbox-menuitem --del --name "${name}" && |
65 |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
${MCORE_LIBDIR}/fluxbox-rebuild-menu |
66 |
fi |
fi |
67 |
|
if is_provided idesk |
68 |
|
then |
69 |
|
${MCORE_LIBDIR}/idesk-generate-icon-info --del --name "${name}" && |
70 |
|
${MCORE_LIBDIR}/idesk-generate-all-desktop-icons |
71 |
|
fi |
72 |
else |
else |
73 |
eecho "No configured session named '${name}' exists." |
eecho "No configured session named '${name}' exists." |
74 |
fi |
fi |