File: fvwm-crystal.menu-method

package info (click to toggle)
fvwm-crystal 3.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 19,748 kB
  • ctags: 793
  • sloc: sh: 2,815; cs: 880; python: 875; makefile: 212
file content (43 lines) | stat: -rw-r--r-- 1,246 bytes parent folder | download | duplicates (4)
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
40
41
42
43
#!/usr/bin/install-menu
#
# debian menu method for the fvwm-crystal desktop environment
# Author: Michael Stilkerich <ms@mike2k.de>
# Modified by Vincent Bernat <bernat@debian.org>
#
compat="menu-1"

!include menu.h

compat="menu-2"

outputencoding="LOCALE";

supported;
  x11=  "x11|*|" $command "|*|" title() "|*|" $basesection "|*|" icon() "\n";
  text= "text|*|" $command "|*|" title() "|*|" $basesection "|*|" icon() "\n";
endsupported;

# generate a file name in the fvwm-crystal appdb format.
# do nothing for sections
genmenu=ifeqelse($needs, "", "", "fvwm-crystal.debian-menu");
startmenu="";
endmenu="";

# the root of the menu is debian
rootsection="/debian";
rootprefix="/var/lib/fvwm-crystal/Applications";

# runnable as user, but will exit with error if debian Application subdir not
# writeable (masked out by user)
userprefix=".fvwm/Applications");

treewalk="M";

# remove the whole Debian menu and rebuild from scratch
prerun="rm -rf " prefix() rootsection();

# all menu files must be executable to show up in the menu
postrun="python /usr/share/fvwm-crystal/debian/createmenu.py --install " prefix();

# executed upon update-menus --remove
removemenu="python /usr/share/fvwm-crystal/debian/createmenu.py --remove " prefix();