]> git.decadent.org.uk Git - ion3.git/blob - debian/ion3.menu-method
Update cfg_kludge_flash for Flash 10
[ion3.git] / debian / ion3.menu-method
1 #!/usr/bin/install-menu
2 # by Iwan Heskamp <iwan@hetwasietsmet.nl>
3 # http://tdm120.el.utwente.nl/~hkp/pwm/
4 # Modified for Ion by Per Olofsson <pelle@dsv.su.se>
5
6 compat="menu-1"
7
8 !include menu.h
9
10 compat="menu-2"
11
12 outputencoding="ISO-8859-1";
13
14 function q($arg) = esc($arg, "\\\"");
15 function qc($arg) = esc($arg, "\\'");
16
17 function entry($action)="    menuentry(\"" q(title()) "\", \""
18         q($action) "\"),\n";
19 function entry_exec($command)=entry("ioncore.exec('" qc($command) "')");
20
21 supported;
22    x11  = entry_exec($command);
23    wm   = entry("ioncore.restart_other('" qc($command) "')");
24    text = entry_exec(term());
25 endsupported;
26
27
28 startmenu="defmenu(\"" $section "\", {\n";
29 endmenu="})\n\n";
30 genmenu="debian-menu.lua";
31 submenutitle="    submenu(\"" $title "\", \"" $section "\"),\n";
32 preoutput="\n";
33 mainmenutitle="Debian";
34 rootsection="Debian";
35 rootprefix="/var/lib/ion3/";
36 userprefix="/.ion3/";
37
38 preoutput= "-- Automatically generated file. Do not edit.\n-- (See /usr/share/doc/menu/menu.txt.gz)\n\n";