/etc/menu-methods/flwm is in flwm 1.02+git2015.10.03+7dbb30-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #!/usr/bin/install-menu
# Generates flwm menus for all registered applications.
compat="menu-1"
!include menu.h
outputencoding="ISO-8859-1"
# Make menus into directories and entries into files; deal with entries that
# contain slashes like "Communicator (static/461) Browser"
genmenu=$basesection "/" replacewith($title, "/", "_") \
ifelse($command, "", "/")
rootprefix="/var/lib/flwm/wmx/"
userprefix=".wmx/"
treewalk="(M)"
rootsection="/Debian"
preoutput= "#! /bin/sh\n# This file was automatically generated (see /usr/share/doc/menu).\n# DO NOT EDIT!\n"
# Clean-up files we may have generated in an earlier run first.
prerun="test -d " prefix() " && ( find " prefix() " -type f -exec grep -q 'DO NOT EDIT' {} \\; -exec rm {} \\; ; find " prefix() " -depth -type d -print0 | xargs -0 rmdir --ignore-fail-on-non-empty )"
removemenu="test -d " prefix() " && ( find " prefix() " -type f -exec grep -q 'DO NOT EDIT' {} \\; -exec rm {} \\; ; find " prefix() " -depth -type d -print0 | xargs -0 rmdir --ignore-fail-on-non-empty )"
# And make the generated scripts executable afterwards.
postrun="find " prefix() " -type f -print0 | xargs -0 chmod a+x"
supported
x11= $command "\n"
text= term() "\n"
# TODO: we should support "wm" as well
endsupported
mainmenutitle=""
submenutitle= ""
startmenu=""
endmenu=""
|