Discussion:
[openbox] Two Separate Menus: root-menu and Debian menu
rent0n
2009-10-05 17:26:44 UTC
Permalink
Hi,
I'm trying to use two different menus on my openbox setup, do you think
it's possible?
The first one is the classical root-menu, which i like to modify
manually editing the ./config/openbox/menu.xml file
The second one should be the Debian Menu which i would like to call with
a different mousebind, say Shift + Right Click.

So i installed the menu package and i decommented these two lines on the
rc.xml file:

<file>/var/lib/openbox/debian-menu.xml</file>
<file>debian-menu.xml</file>
After that i created the new mousebind (S-Right) to show debian menu, specyfing "Debian" as menu id.

Everything seemed to work fine as i was able to call the two different menus separately, with the two different mousebinds.
The big problem is that some categories in my orginal root-menu (Graphics, Office, System) are now filled with the debian menu stuff, also if the original menu.xml has not been modified.

Anyone knows a way to use root-menu and debian menu separately without interferences?
It would be so useful!

Thank you,
rent0n
Mikael Magnusson
2009-10-05 17:36:45 UTC
Permalink
Hi,
I'm trying to use two different menus on my openbox setup, do you think it's
possible?
The first one is the classical root-menu, which i like to modify manually
editing the ./config/openbox/menu.xml file
The second one should be the Debian Menu which i would like to call with a
different mousebind, say Shift + Right Click.
So i installed the menu package and i decommented these two lines on the
<file>/var/lib/openbox/debian-menu.xml</file>
<file>debian-menu.xml</file>
After that i created the new mousebind (S-Right) to show debian menu,
specyfing "Debian" as menu id.
Everything seemed to work fine as i was able to call the two different menus
separately, with the two different mousebinds.
The big problem is that some categories in my orginal root-menu (Graphics,
Office, System) are now filled with the debian menu stuff, also if the
original menu.xml has not been modified.
Anyone knows a way to use root-menu and debian menu separately without interferences?
It would be so useful!
Make sure you don't use any of the same menu ids in your menu as the
debian menu, they're global.

--
Mikael Magnusson
rent0n
2009-10-05 21:47:00 UTC
Permalink
Post by Mikael Magnusson
Post by rent0n
Hi,
I'm trying to use two different menus on my openbox setup, do you
think it's possible?
The first one is the classical root-menu, which i like to modify
manually editing the ./config/openbox/menu.xml file
The second one should be the Debian Menu which i would like to call
with a different mousebind, say Shift + Right Click.
So i installed the menu package and i decommented these two lines on
<file>/var/lib/openbox/debian-menu.xml</file>
<file>debian-menu.xml</file>
After that i created the new mousebind (S-Right) to show debian
menu, specyfing "Debian" as menu id.
Everything seemed to work fine as i was able to call the two
different menus separately, with the two different mousebinds.
The big problem is that some categories in my orginal root-menu
(Graphics, Office, System) are now filled with the debian menu stuff,
also if the original menu.xml has not been modified.
Anyone knows a way to use root-menu and debian menu separately without interferences?
It would be so useful!
Make sure you don't use any of the same menu ids in your menu as the
debian menu, they're global.
I don't know if i understood well..You mean there's no way to have a
System, Office and Graphics submenu inside my root-menu or they will be
"overwrited" by the debian menu, right?

Thank you,
rent0n
Mikael Magnusson
2009-10-05 21:50:53 UTC
Permalink
Post by Mikael Magnusson
Post by rent0n
Hi,
I'm trying to use two different menus on my openbox setup, do you think
it's possible?
The first one is the classical root-menu, which i like to modify
manually editing the ./config/openbox/menu.xml file
The second one should be the Debian Menu which i would like to call with
a different mousebind, say Shift + Right Click.
So i installed the menu package and i decommented these two lines on the
<file>/var/lib/openbox/debian-menu.xml</file>
<file>debian-menu.xml</file>
After that i created the new mousebind (S-Right) to show debian menu,
specyfing "Debian" as menu id.
Everything seemed to work fine as i was able to call the two different
menus separately, with the two different mousebinds.
The big problem is that some categories in my orginal root-menu
(Graphics, Office, System) are now filled with the debian menu stuff,
also if the original menu.xml has not been modified.
Anyone knows a way to use root-menu and debian menu separately without
interferences?
It would be so useful!
Make sure you don't use any of the same menu ids in your menu as the
debian menu, they're global.
I don't know if i understood well..You mean there's no way to have a System,
Office and Graphics submenu inside my root-menu or they will be "overwrited"
by the debian menu, right?
No.

--
Mikael Magnusson
Dana Jansens
2009-10-05 21:56:17 UTC
Permalink
Post by rent0n
?Hi,
?I'm trying to use two different menus on my openbox setup, do you
think > ?it's possible?
?The first one is the classical root-menu, which i like to modify >
?manually editing the ./config/openbox/menu.xml file
?The second one should be the Debian Menu which i would like to call
with > ?a different mousebind, say Shift + Right Click.
?So i installed the menu package and i decommented these two lines on
? ? <file>/var/lib/openbox/debian-menu.xml</file>
? ? <file>debian-menu.xml</file>
?After that ?i created the new mousebind (S-Right) to show debian menu,
?specyfing "Debian" as menu id.
?Everything seemed to work fine as i was able to call the two
different > ?menus separately, with the two different mousebinds.
?The big problem is that some categories in my orginal root-menu >
?(Graphics, Office, System) are now filled with the debian menu stuff, >
?also if the original menu.xml has not been modified.
?Anyone knows a way to use root-menu and debian menu separately
without > ?interferences?
?It would be so useful!
?Make sure you don't use any of the same menu ids in your menu as the
?debian menu, they're global.
I don't know if i understood well..You mean there's no way to have a
System, Office and Graphics submenu inside my root-menu or they will be
"overwrited" by the debian menu, right?
No.
He meant that no menus inside the "Debian" menu or the "Root" menu
should share an ID if you want to edit them independently.
rent0n
2009-10-05 22:04:44 UTC
Permalink
Post by rent0n
Post by rent0n
Hi,
I'm trying to use two different menus on my openbox setup, do you
think > it's possible?
Post by rent0n
The first one is the classical root-menu, which i like to modify
manually editing the ./config/openbox/menu.xml file
The second one should be the Debian Menu which i would like to
call with > a different mousebind, say Shift + Right Click.
Post by rent0n
Post by rent0n
So i installed the menu package and i decommented these two
<file>/var/lib/openbox/debian-menu.xml</file>
<file>debian-menu.xml</file>
After that i created the new mousebind (S-Right) to show debian
menu, > specyfing "Debian" as menu id.
Post by rent0n
Post by rent0n
Everything seemed to work fine as i was able to call the two
different > menus separately, with the two different mousebinds.
Post by rent0n
The big problem is that some categories in my orginal root-menu
(Graphics, Office, System) are now filled with the debian menu
stuff, > also if the original menu.xml has not been modified.
Post by rent0n
Post by rent0n
Anyone knows a way to use root-menu and debian menu separately
without > interferences?
Post by rent0n
It would be so useful!
Make sure you don't use any of the same menu ids in your menu as the
debian menu, they're global.
I don't know if i understood well..You mean there's no way to have a
System, Office and Graphics submenu inside my root-menu or they will
be "overwrited" by the debian menu, right?
No.
Ok, i'm sorry but english is not my first language (i'm from italy) and
sometimes i can't understand exactly what you write.
Can you please explain me what you meant before and how to solve my
little problem?


Thank you very much,
rent0n
Doug Barton
2009-10-05 22:29:38 UTC
Permalink
Post by rent0n
Ok, i'm sorry but english is not my first language (i'm from italy) and
sometimes i can't understand exactly what you write.
Can you please explain me what you meant before and how to solve my
little problem?
Let's say you have this:

<openbox_menu> <debian_menu>
<menu id="System"> <menu id="System">

You're going to have a conflict because the menu ids are the same.
Make sure that the menu ids on the debian menu have some sort of
unique property (such as D_System instead of just System) and you
should be fine.


hope this helps,

Doug

PS, one-word answers like "No" are not only rude and obnoxious, they
are complete useless and are better off not being posted at all.
Mikael Magnusson
2009-10-06 06:04:56 UTC
Permalink
Post by Doug Barton
Post by rent0n
Ok, i'm sorry but english is not my first language (i'm from italy) and
sometimes i can't understand exactly what you write.
Can you please explain me what you meant before and how to solve my
little problem?
<openbox_menu> <debian_menu>
<menu id="System"> <menu id="System">
You're going to have a conflict because the menu ids are the same.
Make sure that the menu ids on the debian menu have some sort of
unique property (such as D_System instead of just System) and you
should be fine.
Also note that you can do <menu id="foobarninja" label="System">, so you
can have different ids but the same label. The label only defaults to the
id as a convenience.

--
Mikael Magnusson
rent0n
2009-10-06 18:18:10 UTC
Permalink
Post by Mikael Magnusson
Post by rent0n
Ok, i'm sorry but english is not my first language (i'm from italy) and
sometimes i can't understand exactly what you write.
Can you please explain me what you meant before and how to solve my
little problem?
<openbox_menu> <debian_menu>
<menu id="System"> <menu id="System">
You're going to have a conflict because the menu ids are the same.
Make sure that the menu ids on the debian menu have some sort of
unique property (such as D_System instead of just System) and you
should be fine.
Also note that you can do <menu id="foobarninja" label="System">, so
you can have different ids but the same label. The label only defaults
to the id as a convenience.
--
Mikael Magnusson
_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
Ok, now i got it, and it works like a charm!
I'm sorry for the misunderstanding, before.
Thank you all, guys!
rent0n

Knute
2009-10-05 22:51:42 UTC
Permalink
From: Doug Barton <dougb at dougbarton.us>
Subject: Re: [openbox] Two Separate Menus: root-menu and Debian menu
To: "openbox mailing list" <openbox at icculus.org>
Date: Monday, October 5, 2009, 5:29 PM
Post by rent0n
Ok, i'm sorry but english is not my first language
(i'm from italy) and
Post by rent0n
sometimes i can't understand exactly what you write.
Can you please explain me what you meant before and
how to solve my
Post by rent0n
little problem?
<openbox_menu>??? ???
??? <debian_menu>
??? <menu
id="System">??? ???
<menu id="System">
You're going to have a conflict because the menu ids are
the same.
Make sure that the menu ids on the debian menu have some
sort of
unique property (such as D_System instead of just System)
and you
should be fine.
hope this helps,
Doug
Actually Doug, I would suggest that he make the ones in the root_menu be the unique ones. It can be as simple as adding my_blah to the id.

Since the debian menu is system-wide, and get's regenerated by debian, it would take more to keep straightening it out than to just rename the root_menu, which, if I remember correctly was the one that was manually maintained.

Knute
Doug Barton
2009-10-05 23:03:33 UTC
Permalink
Post by Knute
Actually Doug, I would suggest that he make the ones in the
root_menu be the unique ones. It can be as simple as adding
my_blah to the id.
Since the debian menu is system-wide, and get's regenerated by
debian, it would take more to keep straightening it out than to
just rename the root_menu, which, if I remember correctly was the
one that was manually maintained.
Yes, I had forgotten the aspect of the debian menu being supplied
rather than created by the user. I agree with your suggestion to make
the menu ids in the openbox menu the ones with the unique element.


Doug
Loading...