mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 22:28:02 +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
1
debian/clean
vendored
1
debian/clean
vendored
@@ -1 +0,0 @@
|
|||||||
WindowMaker/Defaults/WMRootMenu
|
|
||||||
2
debian/debianfiles/menu/wmappearance
vendored
2
debian/debianfiles/menu/wmappearance
vendored
@@ -6,7 +6,7 @@ compat="menu-1"
|
|||||||
#!include menu.h
|
#!include menu.h
|
||||||
|
|
||||||
genmenu="appearance.menu"
|
genmenu="appearance.menu"
|
||||||
rootprefix="/usr/share/WindowMaker"
|
rootprefix="/etc/GNUstep/Defaults"
|
||||||
userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker"
|
userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker"
|
||||||
treewalk=(M)
|
treewalk=(M)
|
||||||
|
|
||||||
|
|||||||
2
debian/patches/50_def_config_paths.diff
vendored
2
debian/patches/50_def_config_paths.diff
vendored
@@ -10,7 +10,7 @@ index c8bb947..cf06113 100644
|
|||||||
|
|
||||||
/* list of paths to look for the config files, searched in order of appearance */
|
/* list of paths to look for the config files, searched in order of appearance */
|
||||||
-#define DEF_CONFIG_PATHS "~/GNUstep/Library/WindowMaker:"PKGDATADIR
|
-#define DEF_CONFIG_PATHS "~/GNUstep/Library/WindowMaker:"PKGDATADIR
|
||||||
+#define DEF_CONFIG_PATHS "~/GNUstep/Library/WindowMaker:/etc/X11/WindowMaker:"PKGDATADIR
|
+#define DEF_CONFIG_PATHS "~/GNUstep/Library/WindowMaker:/etc/GNUstep/Defaults:"PKGDATADIR
|
||||||
#define DEF_MENU_FILE "menu"
|
#define DEF_MENU_FILE "menu"
|
||||||
|
|
||||||
/* name of the script to execute at startup */
|
/* name of the script to execute at startup */
|
||||||
|
|||||||
1
debian/wmaker-common.install
vendored
1
debian/wmaker-common.install
vendored
@@ -110,7 +110,6 @@ usr/share/WindowMaker/IconSets/Default.iconset
|
|||||||
usr/share/WindowMaker/menu.pl
|
usr/share/WindowMaker/menu.pl
|
||||||
usr/share/WindowMaker/menu.el
|
usr/share/WindowMaker/menu.el
|
||||||
usr/share/WindowMaker/menu.zh_TW
|
usr/share/WindowMaker/menu.zh_TW
|
||||||
usr/share/WindowMaker/appearance.menu
|
|
||||||
usr/share/WindowMaker/plmenu.zh_CN
|
usr/share/WindowMaker/plmenu.zh_CN
|
||||||
usr/share/WindowMaker/plmenu.zh_TW
|
usr/share/WindowMaker/plmenu.zh_TW
|
||||||
usr/share/WindowMaker/menu.gl
|
usr/share/WindowMaker/menu.gl
|
||||||
|
|||||||
5
debian/wmaker-common.postinst
vendored
5
debian/wmaker-common.postinst
vendored
@@ -17,6 +17,11 @@ case "$1" in
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ -x /usr/bin/update-menus -a -x /usr/bin/install-menu ] ; then
|
if [ -x /usr/bin/update-menus -a -x /usr/bin/install-menu ] ; then
|
||||||
|
# Remove the menu.hook from all the possible paths.
|
||||||
|
rm -f /etc/X11/WindowMaker/menu.hook
|
||||||
|
rm -f /usr/share/WindowMaker/menu.hook
|
||||||
|
# Remove appearance.menu
|
||||||
|
rm -f /usr/share/WindowMaker/appearance.menu
|
||||||
update-menus
|
update-menus
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
2
debian/wmaker-common.postrm
vendored
2
debian/wmaker-common.postrm
vendored
@@ -14,7 +14,7 @@ case "$1" in
|
|||||||
purge)
|
purge)
|
||||||
if [ -x /usr/bin/update-menus ] ; then
|
if [ -x /usr/bin/update-menus ] ; then
|
||||||
update-menus
|
update-menus
|
||||||
rm -f /etc/X11/WindowMaker/menu.hook /etc/X11/WindowMaker/plmenu.hook
|
rm -f /etc/GNUstep/Defaults/menu.hook /etc/GNUstep/Defaults/appearance.menu
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
upgrade|abort-install|disappear)
|
upgrade|abort-install|disappear)
|
||||||
|
|||||||
10
debian/wmaker.menu-method
vendored
10
debian/wmaker.menu-method
vendored
@@ -5,18 +5,18 @@
|
|||||||
!include menu.h
|
!include menu.h
|
||||||
compat="menu-1";
|
compat="menu-1";
|
||||||
outputencoding="UTF-8"
|
outputencoding="UTF-8"
|
||||||
|
outputlanguage="C"
|
||||||
|
|
||||||
genmenu="menu.hook"
|
genmenu="menu.hook"
|
||||||
rootprefix="/usr/share/WindowMaker"
|
rootprefix="/etc/GNUstep/Defaults"
|
||||||
userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker/"
|
userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker/"
|
||||||
treewalk="(M)"
|
treewalk="(M)"
|
||||||
rootsection="/Debian"
|
rootsection="/Debian"
|
||||||
|
|
||||||
|
|
||||||
function mytitle()=replacewith(title(),"\"","'")
|
function mytitle()=replacewith(title(),"\"","'")
|
||||||
|
|
||||||
function exec($action,$com)= \
|
function exec($action,$com)= \
|
||||||
" \"" mytitle() "\" " ifnempty($shortcut, "SHORTCUT " $shortcut " ") $action " " esc($com,"*") "\n"
|
" \"" translate(,mytitle()) "\" " ifnempty($shortcut, "SHORTCUT " $shortcut " ") $action " " esc($com,"*") "\n"
|
||||||
|
|
||||||
supported
|
supported
|
||||||
x11= exec("SHEXEC",$command)
|
x11= exec("SHEXEC",$command)
|
||||||
@@ -33,13 +33,13 @@ submenutitle= ""
|
|||||||
startmenu= "\n" \
|
startmenu= "\n" \
|
||||||
ifelse( \
|
ifelse( \
|
||||||
title(), \
|
title(), \
|
||||||
"\"" mytitle() "\" MENU", \
|
ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" MENU"), \
|
||||||
"Debian MENU\n\n" \
|
"Debian MENU\n\n" \
|
||||||
) \
|
) \
|
||||||
"\n"
|
"\n"
|
||||||
endmenu= ifelse( \
|
endmenu= ifelse( \
|
||||||
title(), \
|
title(), \
|
||||||
"\"" mytitle() "\" END", \
|
ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" END"), \
|
||||||
"\n\nDebian END" \
|
"\n\nDebian END" \
|
||||||
) \
|
) \
|
||||||
"\n"
|
"\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user