May I delete some menu items of the popup menu of Puppy 213?
Please give some instructions.
How to delete some items in popup menu?
Re: How to delete some items in popup menu?
It depends on what window manager you are using, and what you mean by "pop up menu".vanchutr wrote:May I delete some menu items of the popup menu of Puppy 213?
Please give some instructions.
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
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
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).
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]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
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)
</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)
deleting menu items
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.
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]
[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]
How to delete some items in popup menu
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:
And here's the edited entry that effectively removes rubix cube from the menu:
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.
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>
Code: Select all
<!-- <Program label="Rubix cube" icon="cube16.xpm">rubix</Program> -->
Give it a try. You're so close, it would be a shame to give up now! This is how we learn.
[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]
[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]