| Author |
Message |
rmcellig
Joined: 19 Nov 2011 Posts: 734 Location: Ottawa Ontario Canada
|
Posted: Sat 09 Mar 2013, 08:38 Post subject:
Working with the menu.xml file |
|
I'm running Precise Puppy 5.4.3 with Openbox. I would like to be able to modify the menu in the lower left hand corner of the panel as well as the menu that appears when I right mouse click. I opened the menu.xml and it looks pretty straight forward when it comes to adding items. but when I save and close the file nothing happens. The menus are not updated. I even tried selecting reconfigure from the Openbox menu.
I understand that there is a GUI way of modifying menus using obmenu. According to Puppy Package Manager, I have obmenu 1.0.2 installed. How do I launch it? I can't see it in any of the menu items. I'd like to try it out although I would much prefer mastering the menu.xml way of modifying the menu.
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2046 Location: World_Hub
|
Posted: Sat 09 Mar 2013, 09:48 Post subject:
|
|
Start with these Randy.. They should getcha goin..
"How to edit Openbox window manager menus" and "How to change Openbox static menu to dynamic pipe menu"
|
|
Back to top
|
|
 |
rmcellig
Joined: 19 Nov 2011 Posts: 734 Location: Ottawa Ontario Canada
|
Posted: Sat 09 Mar 2013, 16:21 Post subject:
|
|
Thanks so much Semme!! I have to say this again that coming from the Mac world and growing up with the GUI, this new way (for me), is compelling so much so that for the most part, the GUI way of doing things feels cumbersome and slow and dare I say it, inflexible.
|
|
Back to top
|
|
 |
rmcellig
Joined: 19 Nov 2011 Posts: 734 Location: Ottawa Ontario Canada
|
Posted: Sat 09 Mar 2013, 19:45 Post subject:
|
|
I think I know why this is happening. Am I right or wrong? I think that you can't modify the menu.xml file and that you must work on a renamed copy of the file instead. Make sense? Just thinking out loud.
Something strange is happening when I modify the menu.xml file and I have verified this in both Puppy 5.2.8 and Precise Puppy 5.4.3. Here is what happens:
I oppen the menu.xml file in Geany. I add a new menu entry, save it, and then Refresh Menu from the Openbox menu. When I right mouse click on the menu, I see the change and then it disappears. When I reopened the menu.xml file, the change I made wasn't in the file. I am really confused as to why this would happen.
Any ideas?
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2046 Location: World_Hub
|
Posted: Sun 10 Mar 2013, 08:50 Post subject:
|
|
That's cause there's more to it than the files inside users $HOME.
Why don't you boot a live session and give Stu90's routine a go.
I'd have done it but haven't gotten there yet..
|
|
Back to top
|
|
 |
rmcellig
Joined: 19 Nov 2011 Posts: 734 Location: Ottawa Ontario Canada
|
Posted: Sun 10 Mar 2013, 11:16 Post subject:
|
|
When I created menu2.xml, everything worked fine. Stu90's stuff is on my list of to do's as well. The big problem with all of this is that it is so much fun!!
|
|
Back to top
|
|
 |
simargl

Joined: 11 Feb 2013 Posts: 373
|
Posted: Mon 11 Mar 2013, 04:56 Post subject:
Re: Working with the menu.xml file |
|
| rmcellig wrote: | | According to Puppy Package Manager, I have obmenu 1.0.2 installed. How do I launch it? |
Type obmenu in terminal and check for any errors. It is python program so make sure that you have python
installed plus pygtk module.
|
|
Back to top
|
|
 |
rmcellig
Joined: 19 Nov 2011 Posts: 734 Location: Ottawa Ontario Canada
|
Posted: Mon 11 Mar 2013, 05:44 Post subject:
|
|
Thanks I will do that and see what happens.
|
|
Back to top
|
|
 |
rmcellig
Joined: 19 Nov 2011 Posts: 734 Location: Ottawa Ontario Canada
|
Posted: Mon 11 Mar 2013, 10:01 Post subject:
|
|
Didn't work. How do I copy/paste from the terminal into this thread so that I can post the result. Middle clicking doesn't seem to do it.
I'm using urxvt.
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2046 Location: World_Hub
|
Posted: Mon 11 Mar 2013, 10:33 Post subject:
|
|
I thought you opted for a new terminal? Is Python installed? Yeah? It lies. You need the devx loaded.
For c/p in urxvt >> text *must remain highlighted* while both buttons are simultaneously pressed.
|
|
Back to top
|
|
 |
rmcellig
Joined: 19 Nov 2011 Posts: 734 Location: Ottawa Ontario Canada
|
Posted: Mon 11 Mar 2013, 10:53 Post subject:
|
|
I did opt got a new terminal but I still want to learn how to do things with the existing terminal.
Regarding Python, when I went to install it I see a list of Puthon related items. Which one to install?
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2046 Location: World_Hub
|
Posted: Mon 11 Mar 2013, 11:13 Post subject:
|
|
Existing terminal? Forget that! Here's another way c/p can happen.
For Python- go with the 135mb devx download in my previous post.
|
|
Back to top
|
|
 |
`f00

Joined: 06 Nov 2008 Posts: 792 Location: the Western Reserve
|
Posted: Thu 14 Mar 2013, 19:01 Post subject:
Subject description: 2¢ discounted |
|
rmcellig wrote
| Quote: | | I oppen the menu.xml file in Geany. I add a new menu entry, save it, and then Refresh Menu from the Openbox menu. When I right mouse click on the menu, I see the change and then it disappears. When I reopened the menu.xml file, the change I made wasn't in the file. I am really confused as to why this would happen. |
(old-school xdg nattering)
No mystery there, obmenu-refresh is using what's in /etc/xdg/* (similar to how fixmenus uses the templates for jwm and icewm) to do the main part of the menu, if I recall correctly - whatever direct edit you did in /root/.config/openbox/menu.xml is overwritten. By the way, you can directly edit the top and bottom .xml files for the openbox menu and those changes will stick .. obmenu-refresh will even throw a message up if your syntax/xml-editing is a bit 'off' I use the top part to do my own custom section of the menu for openbox.
Dunno much about pipe/dynamic menus (nifty concept, anyway) nor python (yah, for some stuff it's a requisite). Definitely true the devx may come in handy for lots of stuff.
Have Fun & good luck
ps - regarding your term, by any chance did you try the urxvt-set gui? mileage may vary with that one (personally I tried it once and not my cup of tea).
|
|
Back to top
|
|
 |
rmcellig
Joined: 19 Nov 2011 Posts: 734 Location: Ottawa Ontario Canada
|
Posted: Fri 15 Mar 2013, 05:53 Post subject:
|
|
Thanks for the obmenu tips! I will also take a look at the terminal GUI you mention.
|
|
Back to top
|
|
 |
|