Hi.
JWM Right Click Substitute 1.0
Based on this Topic I wrote a small program to have ability in JWM/Rox Puppies to place a desktop icon for a program just by clicking its menu entry.
After installation you will find its menu entry Add a Program to the Rox Desktop almost on top of menu Desktop.
This is how it works after clicking :
- makes a copy of /root/.jwmrc
- makes a backup of /root/.jwmrc
- grabs all commands from the copy into a separate file
- adding a new command to those commands within the separate file
- replacing original commands within the copy by the new commands from the separate file
- replacing /root/.jwmrc by the modified copy of /root/.jwmrc
- updating the JWM menu (jwm -reload)
- brings up the JWM menu again to select a program from its whole content
Make sure your mouse pointer is placed above free space on the desktop.
The menu won't come up again and It doesn't create a desktop icon, if the mouse pointer is placed at a window.
The menu also won't come up again and It doesn't create a desktop icon, if the mouse pointer is placed at another desktop icon.
If that's the case the menu also won't rebuild again to start programs as usual.
You need to do a fixmenus and jwm -reload from terminal then, to get the working menu back!
Then you need to select the designated program by clicking it just as you would want to start it normally.
- searches /usr/share/applications for a .desktop file containing the command of the clicked menu entry
- if found, it places the .desktop file onto the desktop
- the desktop icon is locked, so it can't be removed by accident
- restoring the /root/.jwmrc file back to original
- again updating the JWM menu (jwm -reload)
Done!
NOTE: this needs to have xdotool and replaceit installed. If you don't have them and if they aren't at the repository of your Puppy I can distribute them both. Xdotool is already available to download in the SFS PLUS topic. Replaceit is locally available in 32bit and 64bit. So, I could easily add them to this post.
Have fun creating desktop icons from a menu entry.
Xdotool and Replaceit might be also available via PPM in the repositories of the dependent Puppy in use.
Xdotool download in the SFS PLUS topic