Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 31 Jul 2014, 03:57
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Working with the menu.xml file
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3587
Location: World_Hub

PostPosted: 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
View user's profile Send private message 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: 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. Smile
Back to top
View user's profile Send private message Visit poster's website 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3587
Location: World_Hub

PostPosted: 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
View user's profile Send private message 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: 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!! Smile
Back to top
View user's profile Send private message Visit poster's website 
simargl

Joined: 11 Feb 2013
Posts: 572

PostPosted: Mon 11 Mar 2013, 04:56    Post subject: Re: Working with the menu.xml file  

.
Last edited by simargl on Sun 01 Sep 2013, 10:37; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: Mon 11 Mar 2013, 05:44    Post subject:  

Thanks I will do that and see what happens.
Back to top
View user's profile Send private message Visit poster's website 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3587
Location: World_Hub

PostPosted: 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
View user's profile Send private message 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3587
Location: World_Hub

PostPosted: 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
View user's profile Send private message 
`f00


Joined: 06 Nov 2008
Posts: 809
Location: the Western Reserve

PostPosted: 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' Wink 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
View user's profile Send private message 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: 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
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0671s ][ Queries: 12 (0.0038s) ][ GZIP on ]