[openbox] Announcing bgmenu for openbox

Marius Nita marius at cs.pdx.edu
Sat Sep 6 22:57:35 EDT 2003


On Sat, Sep 06, 2003 at 10:50:12PM -0500, Michael Rasile wrote:
> My apologies for being so vague. What I don't understand is the format for
> the line that goes in the menu.xml:
> <menu id="bg-menu" label="Backgrounds" execute="/location/of/bgmenu.rb"/>
> 
> I put this line, changing the /location of bgmenu.rb, of course, to point to
> the script, into my menu.xml.  Should the line be exactly as you state it.
> That is, is it in the correct format and should I type it exactly as you
> gave it. There are no errors to report because nothing shows up in the menu
> to execute. Also, just exactly what should go in the ~/.openbox/bgmenurc. I
> found that a little confusing: /directory/of/images mode. Should that be:
> ~/.openbox/backgrounds full. Sorry, but I find the new format for ob3 a
> little more complex than ob2. I suppose I should just continue to use ob2,
> but it bothers me that I can't get your script to work. It certainly is not
> the fault of the script. If I could at least get the item Backgrounds to
> show up in my menu, I would be happy. :-) Also, which menu should I be
> editing, the one in /usr/local/share/openbox or ~/.openbox/menu.xml??
> I hope I've explained this clearly. If not, thanks for taking the time to
> respond.

you have to make that line part of your menu. so your menu.xml should
look like this:

<openbox_menu>
 <menu id="root" label="whatever">

  ...

  <menu id="bg-menu" label="Backgrounds" execute="/location/of/bgmenu.rb"/>

  ...

 </menu>
</openbox_menu>

i.e. the backgrounds menu will be a submenu of your root menu. you
should at least get an empty submenu named 'Backgrounds' at this
point, even if the script doesn't work.

good luck.



More information about the openbox mailing list