Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox-rebuild-menu.in

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

revision 2328 by niro, Fri Jul 11 13:43:58 2014 UTC revision 2715 by niro, Thu Dec 17 17:11:17 2015 UTC
# Line 20  do Line 20  do
20  done  done
21    
22  # rebuild the user menu too atm  # rebuild the user menu too atm
23  CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox/menu"  CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu-activated"
24  if [ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox ]  if [ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@ ]
25  then  then
26   install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox   install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@
27  fi  fi
28    
29  # fluxbox menu header  # fluxbox menu header
# Line 38  then Line 38  then
38  else  else
39   ver="${MCORE_DISTRIBUTION}"   ver="${MCORE_DISTRIBUTION}"
40  fi  fi
41  addconfig "[begin] (${ver}  #${MCORE_SERIAL})"  addconfig "[begin] (${ver}  #$(mcore-serial))"
42    
43  # add a newline (maybe there is no crlf in the header)  # add a newline (maybe there is no crlf in the header)
44  addconfig  addconfig
# Line 48  addconfig "[include] (${MMINCLUDE})" Line 48  addconfig "[include] (${MMINCLUDE})"
48    
49  # fluxbox menu footer  # fluxbox menu footer
50  addconfig '[separator]'  addconfig '[separator]'
51  addconfig '[exit] (Abmelden)'  #addconfig '[exit] (Abmelden)'
52  addconfig '[exec] (Neustarten) {sudo @@SBINDIR@@/reboot}'  addconfig '[exec] (Neustarten) {sudo @@SBINDIR@@/reboot}'
53  addconfig '[exec] (Herunterfahren) {sudo @@SBINDIR@@/poweroff}'  addconfig '[exec] (Herunterfahren) {sudo @@SBINDIR@@/poweroff}'
54  addconfig '[end]'  addconfig '[end]'
55    
56  # add a newline (maybe there is no crlf in the footer)  # add a newline (maybe there is no crlf in the footer)
57  addconfig  addconfig
58    
59    # add a menu for an deactivated client
60    CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu-deactivated"
61    clearconfig
62    addconfig "[begin] (${ver}  #$(mcore-serial))"
63    addconfig
64    addconfig '[separator]'
65    #addconfig '[exit] (Abmelden)'
66    addconfig '[exec] (Neustarten) {sudo @@SBINDIR@@/reboot}'
67    addconfig '[exec] (Herunterfahren) {sudo @@SBINDIR@@/poweroff}'
68    addconfig '[end]'
69    addconfig
70    
71    # activate the normal client menu
72    install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} \
73     -m0644 ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu-activated \
74     ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu

Legend:
Removed from v.2328  
changed lines
  Added in v.2715