From a4c379c42879ad7c457a7f5890117e08b2de6de2 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Mon, 17 Jul 2006 09:01:55 +0000 Subject: Final switch to XDG menu --- xinit.d/menu | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 xinit.d/menu (limited to 'xinit.d/menu') diff --git a/xinit.d/menu b/xinit.d/menu new file mode 100755 index 0000000..c28d6e2 --- /dev/null +++ b/xinit.d/menu @@ -0,0 +1,22 @@ +#!/bin/sh + +USER_STAMP=$HOME/.xdg-menu-updates.stamp +USER_MENU=$HOME/.local/ + +RETVAL=0 + +if [ -d $USER_MENU -o -f $USER_STAMP -a -f $SYSTEM_STAMP ]; then + if [ ! -f $USER_STAMP ]; then + RETVAL=1; + elif [ $SYSTEM_STAMP -nt $USER_STAMP ]; then + RETVAL=1; + fi + if [ $RETVAL -eq 1 ]; then + echo -n "Running update-menus..." + update-menus -u + echo done + fi +fi + + +# menu ends here -- cgit v1.2.1