1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00
Files
wmaker/debian/wmaker.menu-method
Rodolfo García Peñas (kix) f4479dae30 debian: Remove /etc/X11/WindowMaker folder
The path /etc/X11/WindowMaker is not needed now. The files were
deleted or moved to /usr/share/WindowMaker. Some files were the
same in /etc/X11/WindowMaker and /usr/share/WindowMaker.

The configuration file menu.hook is moved to /etc/GNUstep/Defaults

Duplicated:
 - wmmacros
 - appearence.menu (copied & generated).
 - background.menu

Removed:
 - menu.prehook
 - menu.posthook

Moved:
 - menu.hook (generated).
2012-02-24 19:32:43 +00:00

46 lines
1.1 KiB
Plaintext

#!/usr/bin/install-menu
#
# Generates Window Maker menus for all registered applications.
!include menu.h
compat="menu-1";
outputencoding="UTF-8"
genmenu="menu.hook"
rootprefix="/usr/share/WindowMaker"
userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker/"
treewalk="(M)"
rootsection="/Debian"
function mytitle()=replacewith(title(),"\"","'")
function exec($action,$com)= \
" \"" 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(), \
"\"" mytitle() "\" MENU", \
"Debian MENU\n\n" \
) \
"\n"
endmenu= ifelse( \
title(), \
"\"" mytitle() "\" END", \
"\n\nDebian END" \
) \
"\n"