Hey trapster
a great app !
and your coding is logical to follow
I did some minor tweaks to make the JWM auto update the menu
to reflect instant changes you make in the GUI
I added jemimah's fix also --- thanks jemimah
*using TXZ packages I can permanently remove the apps from the OS
but your program is useful to hide the apps from users that may be confused by so many apps in the menu
thanks
I am posting the TXZ package for anyone that is using TXZ-pup
since a slack-desc file is also required
http://www.puppy2.org/slaxer/Pmenu-1-i486-3_SLXR.txz
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in. You must make
# exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
Pmenu: Pmenu (trapster)
Pmenu:
Pmenu: http://www.murga-linux.com
Pmenu: /puppy/viewtopic.php?t=40277&search_id=809322187
Pmenu: hide clutter from menu
Pmenu: with fix by Jemimah to not require GUI reloads april 2010
Pmenu: with auto refresh JWM menu big_bass sept 3 2010
Pmenu:
Pmenu: Package created for TXZ_pup
Pmenu:
Pmenu:
here is diff against the fix by Jemimah
so you can see what changed between them
Code: Select all
--- /root/Downloads/Pmenu.0.1/usr/local/pmenu/pmenu 2010-04-14 23:36:52.000000000 +0800
+++ /root/Pmenu-1/usr/local/pmenu/pmenu 2010-09-03 10:08:28.000000000 +0800
@@ -2,6 +2,9 @@
#created trapster March 2009 for Puppy 4.00, GPL
#fix by Jemimah to not require GUI reloads april 2010
+# sept 3 2010
+#fix by big_bass to auto update JWM and fixmenus to reflect changes instantly in the menu
+
#finds all items currently listed in the menu...
/usr/local/pmenu/current_list.sh #writes to /usr/local/pmenu/current_list.txt
@@ -13,13 +16,14 @@ export PMENU="<window title=\"Pmenu edit
<vbox>
<hbox>
- <text use-markup=\"true\"><label>\"<b>PUPPY MENU EDITOR
+ <text use-markup=\"true\"><label>\"<b>JWM MENU EDITOR
</b>\"</label></text>
</hbox>
<hbox>
<vbox>
<frame Choose an Item Below to Have it Removed From the Menu Only >
<table>
+
<label>Current Menu Item</label>
<height>200</height>
<variable>TREE1</variable>
@@ -27,11 +31,16 @@ export PMENU="<window title=\"Pmenu edit
<action>/usr/local/pmenu/remove_item.sh \$TREE1</action>
<action>/usr/local/pmenu/current_list.sh</action>
<action>/usr/local/pmenu/removed_list.sh</action>
+ <action>fixmenus</action>
+ <action>jwm -restart</action>
<action>Clear:TREE1</action>
<action>Refresh:TREE1</action>
<action>Clear:TREE2</action>
<action>Refresh:TREE2</action>
+
</table>
+
+
</frame>
</vbox>
</hbox>
@@ -45,13 +54,15 @@ export PMENU="<window title=\"Pmenu edit
<action>/usr/local/pmenu/add_item.sh \$TREE2</action>
<action>/usr/local/pmenu/removed_list.sh</action>
<action>/usr/local/pmenu/current_list.sh</action>
+ <action>fixmenus</action>
+ <action>jwm -restart</action>
<action>Clear:TREE2</action>
<action>Refresh:TREE2</action>
<action>Clear:TREE1</action>
<action>Refresh:TREE1</action>
+
</table>
-<button><label>Refresh Menu</label><action>fixmenus</action></button>
<button><label>Close</label><action>/usr/local/pmenu/close.sh</action></button>
</frame>
</hbox>