Contents of /mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox-rebuild-autostart.in
Parent Directory | Revision Log
Revision 2624 -
(show annotations)
(download)
Fri Sep 25 13:26:02 2015 UTC (9 years ago) by niro
File size: 884 byte(s)
Fri Sep 25 13:26:02 2015 UTC (9 years ago) by niro
File size: 884 byte(s)
-fixed broken shared dir
1 | #!/bin/bash |
2 | |
3 | MCORE_LIBDIR="@@MCORE_LIBDIR@@" |
4 | source @@SYSCONFDIR@@/mcore/mcore.conf |
5 | source ${MCORE_LIBDIR}/include/common.global.class |
6 | |
7 | if [ ! -d ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart ] |
8 | then |
9 | echo "'${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart' does not exist." |
10 | exit 1 |
11 | fi |
12 | |
13 | CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox/apps" |
14 | if [ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@ ] |
15 | then |
16 | install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@ |
17 | fi |
18 | clearconfig |
19 | # use global fluxbox apps file as default |
20 | if [ -f ${MROOT}/@@FLUXBOX_SHARED_DIR@@/apps ] |
21 | then |
22 | addconfig "$(< ${MROOT}/@@FLUXBOX_SHARED_DIR@@/apps)" |
23 | fi |
24 | for file in $(find ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart -type f | sort) |
25 | do |
26 | addconfig "$(< ${file})" |
27 | done |
28 | |
29 | # add a newline (maybe there is no crlf in the footer) |
30 | addconfig |