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 Wed 19 Jun 2013, 08:23
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to change Openbox static menu to dynamic pipe menu
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Wed 01 Aug 2012, 13:55    Post_subject:  How to change Openbox static menu to dynamic pipe menu  

Here is a guide to turn Puppy's static file openbox menu into a dynamically generated openbox pipe menu.

Why would you want to do this?

1. remove the need for fix menus - any /usr/share/applications/ .desktop file added or removed will instantly be updated in the openbox menu.

2. Simplification of the openbox menu.xml file - for puppy this is normally split over several different files making it complicated to customize - now it is all confined to one file /root/.config/openbox/menu.xml file that is less than 50 lines!

3. Menu management - Sub menus can easy be added or removed in the /etc/xdg/openbox/obmenu/obmenu script.



How to use:
Download the below obmenu.tar.gz file and extract then move the obmenu directory to the /etc/xdg/openbox/ directory.

Then open a terminal and run the setup script:
/etc/xdg/openbox/obmenu/setup -install

Now you will need to comment out any openbox entry in fixmenus as they will over write your new menu file.
run command:
geany /usr/sbin/fixmenus

Towards the bottom of the file look for anything relating to openbox and comment it out with a hash # at the start of the line - then save file.
#[ `which obmenu-refresh` ] && obmenu-refresh
#[ `which openbox` ] && ob-xdgmenu
#[ `which openbox` ] && obmenu-update


To customize the menu layout / quick launch applications and additional pipe menus etc edit file /root/.config/openbox/menu.xml

To customize what menu entries are displayed add/remove .desktop files in /usr/share/applications/ directory
- or -
i included a simple terminal menu entry manager in Ob Settings > Menu Manager

To customize / add / remove Sub Menus edit scritp /etc/xdg/openbox/obmenu/obmenu

To revert back to your old menu setup run in terminal script:
/etc/xdg/openbox/obmenu/setup -uninstall

Warning this might not work or could even break your puppy openbox setup so use at your own discretion.
obmenu.tar.gz
Description 
gz

 Download 
Filename  obmenu.tar.gz 
Filesize  4.08 KB 
Downloaded  199 Time(s) 
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 2273
Location: Gatineau (Qc), Canada

PostPosted: Thu 09 Aug 2012, 16:13    Post_subject:  

Thanks, stu.

Trying it now !

_________________
Wink "To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) Wink
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0404s ][ Queries: 13 (0.0068s) ][ GZIP on ]