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

Re: Fluxbox, Debian menu



On Mon, Dec 08, 2003 at 07:19:35PM +0200, Kristian Niemi wrote:
> Got punished for trying out fluxbox-cvs, now wondering if anyone could 
> help me keep the cake...
> 
> I'm using Sid.
> The thing is that I had Fluxbox stable (0.1.14-2) installed, but added a 
> apt-source to be able to use a more fresh Fluxbox, the Debian way. So I 
> uninstalled old Fluxbox, installed newer one (all with apt-get); new one 
> is version 0.9.6+cvs20031124.20-1. In that process Fluxbox' menu got 
> screwed up. Disappeared, actually.
> 
> I've tried to read TFM, and so far I've only managed to figure out that 
> it might have something to do with 'fluxbox' missing from 
> /etc/menu-methods/ ...

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: