aboutsummaryrefslogtreecommitdiffstats
path: root/xinit.d/menu
blob: c28d6e2574c16fc1923d9b744f09637779c73244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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