[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fluxbox, Debian menu



Thanks, it got me a bit on the way, *but* ...
(There always has to be a `but', doesn't there?)

First of all I had to change the following line:
!include menu.h -- into: !include /etc/menu-methods/menu.h
Don't know if that's good/bad/doesn't matter...

Secondly, I get the following error:
update-menus[2189]: Running method: /etc/menu-methods/fluxbox
Warning: The string include-menu-defs did not occur in template file /etc/X11/fluxbox/system.fluxbox-menu

It's not really strange that it complains --- I don't have the file system.fluxbox-menu. Could you perhaps mail that one as well?

It feels like progress is made, but not quite there yet. ;)

Oh, and I had to (manually) create the directory /etc/X11/fluxbox (the fluxbox-part, that is).


h: Krisse


Mark Schouten wrote:
 > Put this is you ~/.fluxbox/init
session.menuFile:       /etc/X11/fluxbox/fluxbox-menu

Remenber that Fluxbox is strange with the configfiles, so you have to
add it when Fluxbox is *not* running.


And here's my /etc/menumethods/fluxbox

#!/usr/sbin/install-menu
#
# Generates fluxbox menus for all registered applications.
# (taken from Blackbox)
compat="menu-1"
outputencoding="ISO-8859-1"

!include menu.h

genmenu="menudefs.hook"
examplercfile="system.fluxbox-menu"
rcfile="fluxbox-menu"
rootprefix="/etc/X11/fluxbox/"
userprefix=".fluxbox/"
treewalk=M)

supported
x11= nstring(level(), " ") "[exec] (" esc($title, ")") ") {" esc($command, "()") "}\n" wm= nstring(level(), " ") "[restart] (" esc($title, "()") ") {" esc($command, "()") "}\n" text= nstring(level(), " ") "[exec] (" esc($title, "()") ") { x-terminal-emulator -T \"" esc($title, "()") "\" -e " esc($command, "()") "}\n"
    fluxbox= nstring(level(), "   ") "[" esc($command, "()") "] (" esc($title, "()") ")\n"
endsupported

#preoutput= \
#  "# Automatically generated file. Please do not edit (see /usr/share/doc/menu/README)\n\n\n\nDebian MENU\n\n[begin] (Debian)\n"
#postoutput= \
#   "\nDebian END\n"

startmenu= ""
submenutitle= nstring(level(), "   ") "[submenu] (" esc($title,"()") ") {" esc($longtitle,"()") "}\n"
endmenu= ifneq( level(), "0",  nstring(level(), "   ") "[end]\n" )

Good luck

Mark





Reply to: