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

Re: Fluxbox and Debian menu



On Mon, Jul 10, 2006 at 03:08:45PM -0400, T wrote:
> On Mon, 10 Jul 2006 20:13:17 +0300, Linas wrote:
> 
> >>> How could I make that happening to Fluxbox?
> >> 
> >> do you have the menu-xdg package installed?
> > 
> > "menu-xdg" is not needed. Fluxbox (the one in Debian at least) uses
> > standard Debian Menu system, and has been doing that for as long as I can
> > remember.
> > 
> > [...] Try removing
> > "~/.fluxbox/fluxbox-menu" file and re-running "update-menus" as root.
> 
> That works. Thanks a lot. 
> (NB, it's ~/.fluxbox/menu, BTW)
> 
> Is it possible to keep my own menu, while link to the system menu via a
> "Debian" sub-menu? 

While a little clunky, my approach uses a script:

============================

daddy:~/.fluxbox# cat fixMenu
#!/bin/bash

# This updates the fluxbox menu, inserting my own common items
# (text file personalStuff) at the beginning of the menu.

# That includes an item to update the menu using this script.

# This must be placed in the path (in this case $HOME/bin)
# for that line item to work.  See personalStuff.

cd $HOME/.fluxbox

cp /etc/X11/fluxbox/fluxbox-menu fmenu

# The numbers 8 and 9 are chosen based on the standard format of the
# menu generated in /etc/X11/fluxbox.

# LOOK OUT FOR CHANGES TO THAT FILE!

head -8 fmenu > H
tail --lines=+9 fmenu > T
cat H personalStuff T > menu
rm T H fmenu

daddy:~/.fluxbox# cat personalStuff
[exec] (Bluefish) {/usr/bin/bluefish}
[exec] (Firefox) {firefox}
[exec] (galculator) {/usr/bin/galculator}
[exec] (The GIMP) {/usr/bin/gimp}
[exec] (Gnumeric) {/usr/bin/gnumeric}
[exec] (Lyx) {/usr/bin/lyx-qt}
[exec] (Xfig) {/usr/bin/xfig -nosplash}
[exec] (Terminal) {/usr/bin/rxvt}

    [submenu] (Chemistry) {}
        [exec] (chemtool) {chemtool}
        [exec] (Chimera) {/usr/local/chimera/bin/chimera}
        [exec] (garlic) {/usr/bin/garlic}
        [exec] (gdis) {/usr/bin/gdis}
        [exec] (GPeriodic) {gperiodic}
        [exec] (King) {/home/daddy/bin/king}
        [exec] (Mage) {/home/daddy/bin/mage}
        [exec] (prekin) {/home/daddy/bin/prekin}
        [exec] (Rasmol) { x-terminal-emulator -T "Rasmol" -e /usr/bin/rasmol}

    [end]

[exec] (-- update menu --) {fixMenu}

[exec] ( ) {/usr/bin/true}

daddy:~/.fluxbox#

===================

HTH,


Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have.     - Lee Iacocca



Reply to: