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 Fri 18 Apr 2014, 01:48
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to stop JWM from reverting to old menu?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
mrpectate


Joined: 16 Apr 2007
Posts: 12

PostPosted: Tue 08 Jul 2008, 19:23    Post subject:  How to stop JWM from reverting to old menu?  

Sorry if this has been asked (or solved) Embarassed but I can't figure out how to stop the menu in JWM from returning to its' previous state. I learned how to add a few custom items like XRick, XSok, Descent2, Synfig, etc. and change "Fun" to "Games" in .jwmrc. I did this as they didn't add themselves to the menu. After a few reboots or restart JWMs, the menu changes are gone. I really don't get it Confused

Thanks for reading this. Very Happy
Back to top
View user's profile Send private message 
mrpectate


Joined: 16 Apr 2007
Posts: 12

PostPosted: Tue 08 Jul 2008, 20:11    Post subject:  

Shocked
OK. This might NOT be JWM specific.
I just installed IceWM, and the same thing is happening.
There must be a file that Puppy uses to keep track of the menu?
I dunno...

P.S. I'm booting Fat Free Pup 3.01 from the CD on a Dell Inspiron 1100.
I use a 1gig jump drive with the pup_301.sfs and zdrv_301.sfs files on it (to speed things) and the save file of course.
This is cuz the dang thing has no hard drive yet Smile
Back to top
View user's profile Send private message 
oli

Joined: 30 Aug 2006
Posts: 194
Location: Germany, Frankfurt

PostPosted: Wed 09 Jul 2008, 11:16    Post subject:  

I will have a look at it on Thursday evening. Today I have no time.
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Wed 09 Jul 2008, 11:35    Post subject:  

My guess is that these are old dotpups that do not have .desktop files and are modifying .jwmrc directly. In more recent puppies these changes will be overwritten next time a package is installed or the command fixmenus is run.

If this is the problem then you need to add some .desktop files to /usr/share/applications. Try copying the entries from one for a similar type of application.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Kal

Joined: 05 May 2005
Posts: 623
Location: California, High Desert

PostPosted: Wed 09 Jul 2008, 12:36    Post subject:  

To change a menu name like Fun to Games, you need to go to the file /usr/share/desktop-directories/Puppy-Fun.directory.

Then right click on it for a popup menu-->Open As Text. In the editor, change the name from Fun to Games, then save.

Type fixmenus, in a terminal console, Restart JWM in the Shutdown of the menu and you're there.
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11049
Location: The Peoples Republic of California

PostPosted: Thu 10 Jul 2008, 02:27    Post subject:  

HairyWill wrote:
My guess is that these are old dotpups that do not
have .desktop files and are modifying .jwmrc directly. In more recent
puppies these changes will be overwritten next time a package is
installed or the command fixmenus is run.


Will,

You're right. But what can people do? My way is to manage
everything manually. Even the installation of the package. But that
defeats the whole purpose of the xdg system.

Bruce

Ideas anyone ???
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Thu 10 Jul 2008, 09:26    Post subject:  

dir2pet includes a script to build a .desktop file.
Maybe a small gui to open a dotpup and to lead you through building a .desktop file would be good.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
oli

Joined: 30 Aug 2006
Posts: 194
Location: Germany, Frankfurt

PostPosted: Thu 10 Jul 2008, 12:18    Post subject:  

This is the way I did it:

Start a shell. Enter the following command:

geany /etc/rc.d/rc.update

Search for the line "/usr/sbin/fixmenus" and add a comment-sign # to the line. It should looks like

#/usr/sbin/fixmenus

Save the file.

Then you can edit the file .jwmrc to create your own menu.

----------------------

If you want have back the original menu you have to do this:

Start a shell. Enter the following command:

geany /etc/rc.d/rc.update

Search for the line "/usr/sbin/fixmenus" and delete the comment-sign # from the line. It should looks like

/usr/sbin/fixmenus

Save the file.

Then you enter at the shell the follwing command:

/usr/sbin/fixmenus

This command rebuilts the menu.

Finally you click on "Menu/Shutdown/Restart JWM".

Now you have the original menu.
Back to top
View user's profile Send private message 
mrpectate


Joined: 16 Apr 2007
Posts: 12

PostPosted: Fri 11 Jul 2008, 08:00    Post subject:  

Thanks to everyone for the input.

oli...I tried your method and the menu is holding steady Very Happy

I guess that
Quote:
#/usr/sbin/fixmenus

took away Puppys' ability to change it?
I found it in 2 places in rc.update and commented out both.

This was driving me nutz...thank you again Very Happy
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Fri 11 Jul 2008, 08:32    Post subject:  

it might be safer just to open up fixmenus and put an exit command in at the top, it must also get called by the package manager
_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3219

PostPosted: Mon 04 Aug 2008, 01:35    Post subject: Re: JWM menu resets  

mrpectate wrote:
Sorry if this has been asked (or solved) Embarassed but I can't figure out how to stop the menu in JWM from returning to its' previous state. I learned how to add a few custom items like XRick, XSok, Descent2, Synfig, etc. and change "Fun" to "Games" in .jwmrc. I did this as they didn't add themselves to the menu. After a few reboots or restart JWMs, the menu changes are gone. I really don't get it Confused

Thanks for reading this. Very Happy


The problem IS NOT "fixmenus". Edit the menu entry in /usr/share/applications/file.desktop, and then use fixmenus to write it to .jwmrc. Editing .jwmrc directly doesn't work, because it gets re-written by the .desktop file on reboot.
Back to top
View user's profile Send private message 
mrpectate


Joined: 16 Apr 2007
Posts: 12

PostPosted: Fri 08 Aug 2008, 19:20    Post subject:  

Sorry, I searched for "file.desktop" and apparently I don't have it Confused

In case it makes a difference, I'm running from a bootable jump drive...
Back to top
View user's profile Send private message 
e_mattis


Joined: 20 Dec 2012
Posts: 102
Location: Williamston, SC

PostPosted: Sat 16 Feb 2013, 11:37    Post subject:  

Just out of curiosity, how are we suposed to edit the 'file'.desktop file so that it doesn't appear in the menu? Confused

thanks!

E
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10662
Location: Arizona USA

PostPosted: Sat 16 Feb 2013, 11:53    Post subject:  

e_mattis, this thread is very old. I can't say for sure, but Puppy may have moved on to a completely different way of doing things.
Back to top
View user's profile Send private message 
duke93535


Joined: 05 May 2005
Posts: 194
Location: California , High Desert

PostPosted: Sat 16 Feb 2013, 16:16    Post subject:  

Add this to the *.desktop file for which you do not want to display in menu.

NoDisplay=true

Run fixmenus in terminal after, and jwm -restart.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0642s ][ Queries: 12 (0.0043s) ][ GZIP on ]