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 27 Nov 2014, 04:36
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How is adding/removing menu items handled for dotpup/pupget?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Wed 22 Jun 2005, 11:30    Post_subject:  How is adding/removing menu items handled for dotpup/pupget?  

I'm at work and can't give it a try right now but a thought occired to me:
how is the handling of adding/removing menu items done for downloadable packages? does pinstall.sh or dodput.sh handle it or is it the actual puget or dotpup handlr that does?

The reason I ask is that if we add windows managers, do we need to add support for menus?

(menus is another one of those linux things that generally just worked and never bothered to think about until now)

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send_private_message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7083
Location: Perth, Western Australia

PostPosted: Wed 22 Jun 2005, 11:36    Post_subject:  

How to create a PupGet package page:

http://www.goosee.com/puppy/development/createpupget.htm

explains the "keyword" file.

The PupGet script /usr/sbin/pupget currently only manages the menus for Fvwm95 and JWM.
Back to top
View user's profile Send_private_message Visit_website 
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Wed 22 Jun 2005, 12:04    Post_subject:  

yes, it's the link you pointed me to that made me suspect we could have a problem.
GuestToo, for DotPups, the the DotPup program modify the menu accordingly too?

Adding icewm to puppy would require modifying those 2 apps for full menu support, or would require modify the pinstall.sh or dotpup.sh for every package (yeah right)

This project just keeps growing doesn;t it Smile

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send_private_message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Wed 22 Jun 2005, 15:12    Post_subject: Some dotpup installer details  

all the basic dotpup handler does is automatically unzip the dotpup, check the files integrity, and run the dotpup.sh script

what the package does is totally up to the creator of the package

this has the advantage of being very flexible ... but whatever functions the package has must be implemented by the person who makes the package

some of my dotpups have no installer ... some ask if you want to uninstall or reinstall if you run the dotpup again ... some just uninstall auttomatically if you run it again ... some install rox appdirs that have an uninstall option in the menu when you right click the roxapp icon

there are many ways to implement a package, and i did not know the best way to do it at first (i still don't know the best way, really)

the dotpup.sh script could modify wm menus (you would probably need to modify the menu for each wm that is installed) ... i have left the fvwm95 and jwm mrenus alone, because other config items are in the same file, and the configuration could be damaged so that the wm will not even run ... icewm is a lot simpler and easier to work with

icewm has a nice feature ... and programs in the menu that are not installed, do not show up in the menu ... i've mostly been taking advantage of that feature (it also works nicely with roxapps)

it might be difficult to add menu items to the correct submenu if it isn't in the menu already ... i think PupGet assumes that menu items are already in the menu and just need to be uncommented

icewm can make use of the PupGet system too ... menu items just need a # at the beginning of the line to comment it

and the dotpup handler could be improved ... i just wrote a quick and dirty script, figuring it could easily be improved later ... so far, i haven't done anything to it
Back to top
View user's profile Send_private_message 
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Wed 22 Jun 2005, 15:37    Post_subject:  

you're right, for unleashed/pupget there really would be nothing to do for icewm if it automatically hides missing entries .
The assumption is that since it's an unleashed package, it's already been entered in the menu template (albeit commented out) and the same holds true for the indel.htm helpfile.

A really well behaved DotPup would have to register itself with every possible windows manager and in the help file too.

I wonder if the fvwm95 menu file can be translated into an icewm or other WM menu file automatically. then DotPups would only have to update fvwm95 wherever they think the menu entry fits, then call the other WM scripts (such as calling every script in some /importMenu directory) for them to pick up the change.

If we don't implement something like that, we need to make sure people are aware that adding new windows managers may not provide full functionnality as far as instlaling apps.

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send_private_message 
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 » Users ( For the regulars )
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.0760s ][ Queries: 12 (0.0298s) ][ GZIP on ]