You are not logged in.

#1 2014-03-29 13:55:58

Ezea
Member
Registered: 2013-10-06
Posts: 4

Openbox Custom Menu Items fail to appear [SOLVED]

I have been using Openbox for a while. I have edited menu.xml several times to add items to existing menus. However, when I create my own menu using a unique menu id, it does not appear.

For instance adding new items to

 <menu id="apps-accessories-menu" label="Accessories"> 

(one of the original menus) works just fine. So I tried to add another using a custom menu id and reconfigured, but it didn't show up.

I tried changing the id of my custom menu to "apps-accessories-menu" and it caused my custom menu to show up which prevented the original menu. (Which I expected since the documentation says the menu ids must be unique) This makes me think that there is a list of potential menu ids, but I was unable to find one.

I then tried to use obmenu to create a new menu item and when I opened it, it recognized my custom menu! I used it to create another menu which saved successfully into my menu.xml, however, when I reconfigured (and rebooted, etc...) the new items still fail to appear.

I've also done a system upgrade, but I'm not sure what else to do. Thanks for any help!

Last edited by Ezea (2014-03-30 03:39:35)

Offline

#2 2014-03-29 15:03:44

genghizkhan91
Member
From: Kyoto, Japan
Registered: 2013-03-26
Posts: 32
Website

Re: Openbox Custom Menu Items fail to appear [SOLVED]

At the end of the menu.xml file is a menu with the menu id:

 <menu id="root-menu" label="Openbox 3">

You have to add your custom menu to that. As an example, have a look at this - https://github.com/genghizkhan91/dotfil … x/menu.xml Note how every menu has been listed under the "root-menu".

Edit: Corrected spelling error

Last edited by genghizkhan91 (2014-03-29 15:07:37)


Dotfiles | Blog
ArchLinux 64 - Dell Studio 1458, Intel Nehalem i5 460M 2.54 GHz, 4GB RAM, ATI Radeon 5450

Offline

#3 2014-03-30 03:36:52

Ezea
Member
Registered: 2013-10-06
Posts: 4

Re: Openbox Custom Menu Items fail to appear [SOLVED]

genghizkhan91, first you conquer Asia and now my Openbox problem. Thank you for your help. It worked perfectly.

I am curious as to why it is not documented more clearly on the Openbox site, but perhaps I missed something. Moreover, its strange that the root menu isn't adjusted from obmenu. Either way, it worked great.

Offline

#4 2014-03-30 08:14:17

genghizkhan91
Member
From: Kyoto, Japan
Registered: 2013-03-26
Posts: 32
Website

Re: Openbox Custom Menu Items fail to appear [SOLVED]

I'm flattered. smile

And well, you're right. It's not documented on the openbox site. Maybe we should add it to the Arch Wiki page...


Dotfiles | Blog
ArchLinux 64 - Dell Studio 1458, Intel Nehalem i5 460M 2.54 GHz, 4GB RAM, ATI Radeon 5450

Offline

Board footer

Powered by FluxBB