diff options
-rwxr-xr-x | util/fluxbox-generate_menu | 5 |
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" | |||
485 | USERMENU="${HOME}/.fluxbox/usermenu" | 486 | USERMENU="${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. |
488 | if [[ -e ${HOME}/.fluxbox/menuconfig ]];then | 489 | if [ -r ${HOME}/.fluxbox/menuconfig ];then |
489 | . ${HOME}/.fluxbox/menuconfig | 490 | . ${HOME}/.fluxbox/menuconfig |
490 | else | 491 | else |
491 | if [ ! "$WHOAMI" = root ];then # this is only for users. | 492 | if [ ! "$WHOAMI" = root ];then # this is only for users. |