1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00
Files
wmaker/debian/wmaker.menu-method
Rodolfo García Peñas (kix) a3c99bddc8 debian: Small updates in menus etc
The file "clean", which contains "WindowMaker/Defaults/WMRootMenu"
can be removed, because this file was included to be cleaned in
the commit 01907f9983

The Application/* items are moved to the root menu, removing the
"Applications" submenu. The files from /etc/X11/WindowMaker moved
to /etc/GNUstep/Defaults
2012-03-04 16:33:35 +00:00

46 lines
1.3 KiB
Plaintext

#!/usr/bin/install-menu
#
# Generates Window Maker menus for all registered applications.
!include menu.h
compat="menu-1";
outputencoding="UTF-8"
outputlanguage="C"
genmenu="menu.hook"
rootprefix="/etc/GNUstep/Defaults"
userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker/"
treewalk="(M)"
rootsection="/Debian"
function mytitle()=replacewith(title(),"\"","'")
function exec($action,$com)= \
" \"" translate(,mytitle()) "\" " ifnempty($shortcut, "SHORTCUT " $shortcut " ") $action " " esc($com,"*") "\n"
supported
x11= exec("SHEXEC",$command)
wm= exec("RESTART",$command)
text= exec("SHEXEC",term())
wmaker= exec("",$command ifnempty($arg," " $arg))
endsupported
preoutput= "/* Automatically generated file. Do not edit (see /usr/share/doc/menu/menu.txt.gz) */\n\n#include \"wmmacros\"\n"
mainmenutitle=""
submenutitle= ""
startmenu= "\n" \
ifelse( \
title(), \
ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" MENU"), \
"Debian MENU\n\n" \
) \
"\n"
endmenu= ifelse( \
title(), \
ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" END"), \
"\n\nDebian END" \
) \
"\n"