summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-04-09 08:59:03 (GMT)
committerfluxgen <fluxgen>2003-04-09 08:59:03 (GMT)
commit3b9b77d6c7a23b1ad4ea764a9ab6ed5f5ca5aa31 (patch)
treeedb2c624ab146ad27f092dcf50ed7ecfc3d95820
parent90668420cbce353de4664eadff25ebd920bde389 (diff)
downloadfluxbox_lack-3b9b77d6c7a23b1ad4ea764a9ab6ed5f5ca5aa31.zip
fluxbox_lack-3b9b77d6c7a23b1ad4ea764a9ab6ed5f5ca5aa31.tar.bz2
minor fix from Han
-rwxr-xr-xutil/fluxbox-generate_menu5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/fluxbox-generate_menu b/util/fluxbox-generate_menu
index b8a3bd3..af4c11b 100755
--- a/util/fluxbox-generate_menu
+++ b/util/fluxbox-generate_menu
@@ -22,13 +22,14 @@
22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23# DEALINGS IN THE SOFTWARE. 23# DEALINGS IN THE SOFTWARE.
24# 24#
25# $Id: fluxbox-generate_menu,v 1.27 2003/04/08 09:39:37 fluxgen Exp $ 25# $Id: fluxbox-generate_menu,v 1.28 2003/04/09 08:59:03 fluxgen Exp $
26 26
27# 27#
28# Portability notes: 28# Portability notes:
29# To guarantee this script works on all platforms that support fluxbox 29# To guarantee this script works on all platforms that support fluxbox
30# please keep the following restrictions in mind: 30# please keep the following restrictions in mind:
31# 31#
32# don't use [ -e file ] use [ -r file ]
32# don't use $(), use `` 33# don't use $(), use ``
33# don't use ~, use ${HOME} 34# don't use ~, use ${HOME}
34# don't use id -u, use whoami 35# don't use id -u, use whoami
@@ -485,7 +486,7 @@ HOMEPAGE="fluxbox.org"
485USERMENU="${HOME}/.fluxbox/usermenu" 486USERMENU="${HOME}/.fluxbox/usermenu"
486 487
487# Read the menuconfig file if it exists or else create it. 488# Read the menuconfig file if it exists or else create it.
488if [[ -e ${HOME}/.fluxbox/menuconfig ]];then 489if [ -r ${HOME}/.fluxbox/menuconfig ];then
489 . ${HOME}/.fluxbox/menuconfig 490 . ${HOME}/.fluxbox/menuconfig
490else 491else
491 if [ ! "$WHOAMI" = root ];then # this is only for users. 492 if [ ! "$WHOAMI" = root ];then # this is only for users.