How to delete some items in popup menu?

Booting, installing, newbie
Post Reply
Message
Author
vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

How to delete some items in popup menu?

#1 Post by vanchutr »

May I delete some menu items of the popup menu of Puppy 213?
Please give some instructions.

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

Re: How to delete some items in popup menu?

#2 Post by WhoDo »

vanchutr wrote:May I delete some menu items of the popup menu of Puppy 213?
Please give some instructions.
It depends on what window manager you are using, and what you mean by "pop up menu".

If you are using Puppy's standard window manager - JWM - then the main menu is defined by a hidden file /root/.jwmrc which can be edited (very carefully) with geany or leafpad.

If you are using another window manager, or you mean Puppy's "context menu" - obtained by right clicking on an object in a window - that's a dog of an entirely different colour.

Hope that helps

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#3 Post by Pizzasgood »

In IceWM, the menu is at /root/.icewm/menu. It automatically hides things that aren't installed, by the way. Any changes will be immediate with IceWM.

This next part only applies if using XDG menus (Rarsa made the packages, and I've implemented them in Pizzapup 3.0 *shameless plugs 1 and 2*). If you are, you just remove the corresponding .desktop file from /usr/share/applications/ and refresh the menu (usually by restarting the windowmanager or choosing a "refresh" menu-item).
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#4 Post by vanchutr »

I put the # to comment these item in /root/.jwmrc

</Menu>
#<Menu label="Games" icon="face-win24.xpm" height="16">
#<Program label="Bubbles " icon="ballorange16.xpm">exec bubbles.tcl</Program>
#<!-- <Program label="Xbubble " icon="ballorange16.xpm">xbubble</Program> -->
#<!-- <Program label="Xpuyopuyo " icon="ballorange16.xpm">xpuyopuyo</Program> -->
#<Program label="Gtkfish " icon="fish16.xpm">gtkfish</Program>
#<Program label="Rubix cube" icon="cube16.xpm">rubix</Program>
#<Program label="Gemgame " icon="mini-xjewel.xpm">exec gemgame.tcl</Program>
#<Program label="Tkmines minesweeper" icon="mini-exp.xpm">exec tkmines</Program>
#<!-- <Program label="Freecell " icon="mini-trebol.xpm">exec freecell</Program> -->
#<!-- <Program label="Xgalaga shoot-em-up" icon="mini-xlander.xpm">xgalaga</Program> -->
</Menu>

But these item'names are still on the menu?
(I erased all these game in my Puppy)

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

deleting menu items

#5 Post by alienjeff »

The "#" doesn't work in /root/.jwmrc

The "comment out" for such a file (XML) is this: <!--

Note that the menu selections surrounded like this: <!-- menu item you don't want --> won't show up in the pop-up after you restart JWM. Repeat - you must restart JWM for any such changes to take effect.
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#6 Post by vanchutr »

Thanks AlienJef
I don't know the XML syntax

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

How to delete some items in popup menu

#7 Post by alienjeff »

It's really rather easy. You've already attempted it with a text editor, so you're obviously able to do it, XML syntax knowledge or not!

Say you want to remove the rubix cube game. Here's the entry in .jwmrc:

Code: Select all

<Program label="Rubix cube" icon="cube16.xpm">rubix</Program>
And here's the edited entry that effectively removes rubix cube from the menu:

Code: Select all

<!-- <Program label="Rubix cube" icon="cube16.xpm">rubix</Program> -->
As you can see from the above example, you're merely "framing" the existing text with "<!--" and "-->"

Give it a try. You're so close, it would be a shame to give up now! This is how we learn. :wink:
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

Post Reply