mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-30 02:12:30 +01:00
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
This commit is contained in:
committed by
Carlos R. Mafra
parent
4f4ea569a0
commit
a3c99bddc8
10
debian/wmaker.menu-method
vendored
10
debian/wmaker.menu-method
vendored
@@ -5,18 +5,18 @@
|
||||
!include menu.h
|
||||
compat="menu-1";
|
||||
outputencoding="UTF-8"
|
||||
outputlanguage="C"
|
||||
|
||||
genmenu="menu.hook"
|
||||
rootprefix="/usr/share/WindowMaker"
|
||||
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)= \
|
||||
" \"" mytitle() "\" " ifnempty($shortcut, "SHORTCUT " $shortcut " ") $action " " esc($com,"*") "\n"
|
||||
" \"" translate(,mytitle()) "\" " ifnempty($shortcut, "SHORTCUT " $shortcut " ") $action " " esc($com,"*") "\n"
|
||||
|
||||
supported
|
||||
x11= exec("SHEXEC",$command)
|
||||
@@ -33,13 +33,13 @@ submenutitle= ""
|
||||
startmenu= "\n" \
|
||||
ifelse( \
|
||||
title(), \
|
||||
"\"" mytitle() "\" MENU", \
|
||||
ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" MENU"), \
|
||||
"Debian MENU\n\n" \
|
||||
) \
|
||||
"\n"
|
||||
endmenu= ifelse( \
|
||||
title(), \
|
||||
"\"" mytitle() "\" END", \
|
||||
ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" END"), \
|
||||
"\n\nDebian END" \
|
||||
) \
|
||||
"\n"
|
||||
|
||||
Reference in New Issue
Block a user