You are not logged in.
hi...
I want to put some commonly used apps directly on the root menu (i.e, without needing to go through a submenu). But I am not able to do so. Putting this,
<item label="Emacs">
<action name="Execute">
<command>emacs</command>
</action>
</item>
<menu id="root-menu" label="Openbox 3">
<separator label="Aditya"/>
<menu id="apps-accessories-menu"/>
<menu id="apps-editors-menu"/>
<menu id="apps-graphics-menu"/>
<menu id="apps-net-menu"/>
<menu id="apps-office-menu"/>
<menu id="apps-multimedia-menu"/>
<menu id="apps-term-menu"/>
<menu id="apps-fileman-menu"/>
<separator label="System"/>
<separator label="Actions"/>
<item label="Log Out">
<action name="SessionLogout">
<prompt>yes</prompt>
</action>
</item>
<item label="Bashrun">
<action name="Execute">
<command>bashrun</command>
</action>
</item>
Using this code, I can get the Bashrun to show on the menu, but not the emacs entry...?
what is wrong here...?
I prefer not to use obmenu, as I want to learn how to do this myself. I have searched many links but its not clear to me.
Thanks
Last edited by jaydoc (2009-04-10 21:42:11)
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
Why don't you first use Obmenu which creates a correct xml code, and then study this code and learn from it?
Last edited by thunderogg (2009-04-10 19:47:49)
Offline
or just notice that Bashrun is _in_ the root menu and Emacs is not. make it so:
<menu id="root-menu" label="Openbox 3">
<separator label="Aditya"/>
<menu id="apps-accessories-menu"/>
<menu id="apps-editors-menu"/>
<menu id="apps-graphics-menu"/>
<menu id="apps-net-menu"/>
<menu id="apps-office-menu"/>
<menu id="apps-multimedia-menu"/>
<menu id="apps-term-menu"/>
<menu id="apps-fileman-menu"/>
<separator label="System"/>
<separator label="Actions"/>
<item label="Log Out">
<action name="SessionLogout">
<prompt>yes</prompt>
</action>
</item>
<item label="Bashrun">
<action name="Execute">
<command>bashrun</command>
</action>
</item>
<item label="Emacs">
<action name="Execute">
<command>emacs</command>
</action>
</item>
edit: mwahaha Inxsible i got you! i think we have similar usage habits as i find we post on the same threads alot.
Last edited by brisbin33 (2009-04-10 19:58:51)
//github/
Offline
Aditya,
that is because the menu item is outside the root-menu. You haven't given us the complete menu..but is should look something like this
<menu id="root-menu" label="Openbox 3">
<item label="Emacs">
<action name="Execute">
<command>emacs</command>
</action>
</item>
<separator label="Aditya"/>
<menu id="apps-accessories-menu"/>
<menu id="apps-editors-menu"/>
<menu id="apps-graphics-menu"/>
<menu id="apps-net-menu"/>
<menu id="apps-office-menu"/>
<menu id="apps-multimedia-menu"/>
<menu id="apps-term-menu"/>
<menu id="apps-fileman-menu"/>
<separator label="System"/>
<separator label="Actions"/>
<item label="Log Out">
<action name="SessionLogout">
<prompt>yes</prompt>
</action>
</item>
<item label="Bashrun">
<action name="Execute">
<command>bashrun</command>
</action>
</item>
Edit: Dammit Got beat !
Last edited by Inxsible (2009-04-10 19:57:56)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
edit: mwahaha Inxsible i got you! i think we have similar usage habits as i find we post on the same threads alot.
You are on my radar !!
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
well... thanks guys, for the speedy replies. I have a great looking menu now, just like I want it to look.
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline