postinst 454 Bytes
Newer Older
1 2 3 4
#!/bin/sh

set -e

5 6
if perl -MFile::DesktopEntry -MPath::Tiny -MFile::Which -MSet::Scalar -E 1 2>/dev/null; then
    /usr/share/flwm/generate-flwm-menu-from-desktop-files
7 8
fi

9 10 11 12 13 14 15 16 17 18
case "$1" in
triggered)
    exit 0
    ;;

*)
    # Remove (autogenerated) legacy menu files
    if [ -d /etc/X11/flwm/wmx ]; then
	rm -r /etc/X11/flwm/wmx
    fi
19

20 21 22
    inst=/etc/menu-methods/flwm

    if [ -f $inst ]; then
23
	chmod a+x $inst
24 25 26
    fi
    ;;
esac
27 28 29 30

#DEBHELPER#

exit 0