Making JWM Desktop Program Launchers
Moderator: Forum moderators
- vtpup
- Posts: 735
- Joined: Sat Aug 15, 2020 2:34 pm
- Location: Republic of Vermont
- Has thanked: 198 times
- Been thanked: 163 times
- Contact:
Making JWM Desktop Program Launchers
Back in my Win 98 days (which classic Puppies superficially resemble), if a program appeared in the menu, and you wanted to place it on the desktop as a launcher (or "Shortcut" in Winspeak), all you had to do was drag it there. I'm not talking about Win's option to duplicate a program in its "Desktop" folder. Just to dragging a launchable appropriately iconned link out of the menu. Real simple.
I guess my first question is, how do you handle making links on the Desktop from Puppy Menu items? (If you do at all) Maybe I'm being dumb, and missing something long available in Puppies that everybody else does.
And second, as a wish list for future pups, maybe consider working out a drag and drop menu-to-desktop launcher functionality? I mean within the classic JWM/Rox interface.
HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64
My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg
- mikewalsh
- Moderator
- Posts: 6150
- Joined: Tue Dec 03, 2019 1:40 pm
- Location: King's Lynn, UK
- Has thanked: 788 times
- Been thanked: 1976 times
Re: Making JWM Desktop Program Launchers
^^^For those of us who like Puppy traditional JWM/Rox AND like to clutter up our desktop with individual program launchers......
Me, if I don't have a specific app launcher for summat, I'll build one. I have an entire directory of these "MenuEntry .pets", built over the last few years, specifically to add .desktop files to /usr/share/applications, along with suitable icons, for the huge number of shared, remotely-accessed apps I keep on a couple of externally-mounted partitions.....and share between multiple Pups. (If I don't have a suitable icon, or can't find something I like on-line, I'll build those, too..!)
I click to install, then drag it from /usr/share/applications to the pinboard. (Putting stuff in Pup's /root/Desktop directory doesn't actually achieve anything, since Pup's desktop is not, of course, a 'desktop' AT ALL. Not in the strict sense of the term.)
I agree that menu-to-desktop 'drag'n'drop' would be fantastic. I've seen Pups that do it (Openbox? IceWM? Not sure...); in fact, I believe FatDog has it.
Mike.
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Making JWM Desktop Program Launchers
No need to apply an icon to it, as it already has one. Just remove the .desktop part from its name and done.
Though I like to have desktop buttons/icons which starts a preferred program by left-click and offers a list of categorized programs by right-click.
Therefore I'm creating RoxApps using my RoxApp-Builder.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
Re: Making JWM Desktop Program Launchers
As easy in Puppy/JWM as any O/S or Window Manager.
New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM
- vtpup
- Posts: 735
- Joined: Sat Aug 15, 2020 2:34 pm
- Location: Republic of Vermont
- Has thanked: 198 times
- Been thanked: 163 times
- Contact:
Re: Making JWM Desktop Program Launchers
Terry: Perhaps somewhat easy for us, but not remotely as intuitive. Since I have been using Puppy since ver 4.10 and that's new to me.
For a new user, how would they possibly know that they would have to navigate to some place called /usr/share/applications? All they know is that there is no way to move a menu entry to the desktop.
We all here have workarounds for what we want to do because we've committed time to studying how to accomplish them, in other words, are already committed to Puppy Linux. A new user trying it out will find this particular drag and drop inability simply frustrating and foreign to their experience with practically any other OS.
So lessee, I an experienced Puppy user will try it:
1.) Click File Icon on desktop
2.) Click arrow "Change to Parent Directory
3.) Click usr
4.) Click share
5.) Click applications
6.) Drag application to desktop
compare to:
1.) Click Menu
2.) Drag application to desktop
Sure the new way (for me) is a great help. But not for someone new.
And no it's not equivalent to any other OS or Window manager.
HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64
My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Making JWM Desktop Program Launchers
On the other hand, doing it the Puppy way in Windows one perhaps has to move through even more directories to find the files for the menu entries?
The problem is: JWM doesn't differ between left-click and right-click.
If I would be a good programmer in the use of C -which I think JWM is written in-, I would hack the sources to make it able to differ left-click and right-click. When doing a right-click it should be easy to apply a function to call a simple script based context-menu (which would make it easy to modify) with different options like placing the menu entry to the desktop or opening the programs directory etc.
Probably it would be possible to write a program which examines a copy of /root/.jwmrc, modifying it to select a program from the menu to choose different options to do with the clicked menu entry?
I will have a look at it, as I'm perhaps familiar with bash scripting by now...
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Making JWM Desktop Program Launchers
SUCCESS!
Ok, not in complete related to my thoughts quoted above. But that's not really necessary in detail.
Though, I'm able now to place a .desktop file to the Rox Desktop just by clicking its menu entry.
The Package is on the way to be built and then published.
Edit: viewtopic.php?f=106&t=987
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- MochiMoppel
- Posts: 1231
- Joined: Mon Jun 15, 2020 6:25 am
- Location: Japan
- Has thanked: 21 times
- Been thanked: 436 times
Re: Making JWM Desktop Program Launchers
They don't have to know because menu entries may have corresponding .desktop files, but that's not a necessity and some menu entries actually don't.
Some years ago I made me a little script that would allow me to place desktop shortcuts for any JWM menu item. The real purpose was to find the file path or command behind each menu item because the JWM menu contains descriptions, which may be very different from the file name (or the .desktop name).
Still works for my old distro, may work for newer ones: How to turn JWM menu items into desktop shortcuts
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Making JWM Desktop Program Launchers
Wow, that's also a pretty cool solution!
Seems to work in FossaPup64.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Making JWM Desktop Program Launchers
Pity, it doesn't work in my own OS.
Code: Select all
** (gtkdialog:4655): ERROR **: 16:47:05.949: gtkdialog: Error in line 1, near token 'string': syntax error
/mnt/sda1/Dateien/Downloads/MM-MenuInfo/mm_menuinfo: line 113: 4654 Done echo -n "${HEAD}${MENU}${TAIL}"
4655 Trace/Breakpoint ausgelöst | gtkdialog -s
Script completed hit RETURN to close window.
Original .jwmrc from FossPup64 has 126 lines until the end of </RootMenu>.
The .jwmrc in my OS has 627 lines until the end of </RootMenu>.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- MochiMoppel
- Posts: 1231
- Joined: Mon Jun 15, 2020 6:25 am
- Location: Japan
- Has thanked: 21 times
- Been thanked: 436 times
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Making JWM Desktop Program Launchers
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- 666philb
- Posts: 429
- Joined: Thu Jul 09, 2020 3:18 pm
- Location: wales uk
- Has thanked: 111 times
- Been thanked: 149 times
Re: Making JWM Desktop Program Launchers
this is actually already included in fossapup and possibly tahr,xenial & bionic alsoMochiMoppel wrote: ↑Sat Oct 03, 2020 2:32 amThey don't have to know because menu entries may have corresponding .desktop files, but that's not a necessity and some menu entries actually don't.
Some years ago I made me a little script that would allow me to place desktop shortcuts for any JWM menu item. The real purpose was to find the file path or command behind each menu item because the JWM menu contains descriptions, which may be very different from the file name (or the .desktop name).
Still works for my old distro, may work for newer ones: How to turn JWM menu items into desktop shortcuts
Code: Select all
mm_menuinfo
fossapup64 viewtopic.php?f=40&t=88
- MochiMoppel
- Posts: 1231
- Joined: Mon Jun 15, 2020 6:25 am
- Location: Japan
- Has thanked: 21 times
- Been thanked: 436 times
Re: Making JWM Desktop Program Launchers
I've never noticed. Looks like an outdated version.666philb wrote: ↑Sat Oct 03, 2020 6:33 pmthis is actually already included in fossapup and possibly tahr,xenial & bionic alsoCode: Select all
mm_menuinfo
@taersh Including external menu files within the menu is not supported:
<Include>/root/.shutdownrc</Include>
Should work when you integrate the items of /root/.shutdownrc into the Rootmenu.
- vtpup
- Posts: 735
- Joined: Sat Aug 15, 2020 2:34 pm
- Location: Republic of Vermont
- Has thanked: 198 times
- Been thanked: 163 times
- Contact:
Re: Making JWM Desktop Program Launchers
There's a difference between a GUI and an application. The whole purpose of a GUI as originally envisioned in Xerox Smalltalk was to break away from the old concept of computer program oriented interaction and replace it to the greatest degree possible with intuitive human graphic interaction. One of the main focuses was to get rid of the concept of modes.666philb wrote: ↑Sat Oct 03, 2020 6:33 pmthis is actually already included in fossapup and possibly tahr,xenial & bionic alsoMochiMoppel wrote: ↑Sat Oct 03, 2020 2:32 amThey don't have to know because menu entries may have corresponding .desktop files, but that's not a necessity and some menu entries actually don't.
Some years ago I made me a little script that would allow me to place desktop shortcuts for any JWM menu item. The real purpose was to find the file path or command behind each menu item because the JWM menu contains descriptions, which may be very different from the file name (or the .desktop name).
Still works for my old distro, may work for newer ones: How to turn JWM menu items into desktop shortcutsCode: Select all
mm_menuinfo
The fact that I and other experienced users were unaware that there is a (admittedly nice) little program to make icons and get information is mainly due to the fact that it again is a program, not a part of a GUI. Finding, and entering a program one is not aware of is not an intuitive GUI action. By comparison dragging a menu item out onto the desktop is. One can just try it intuitively, and find out if it works, or not. Most modern OS's make it possible.
Now, don't get me wrong, I'm quite happy to have these two programatic solutions, and am respectful of the effort put into creating them. But I would like just to bring up the subject of the how and why of a GUI, as a philosophical and functional approach to interaction. It is most important especially for new users to have intuitive graphical solutions. Smalltalk was originally thought to be in part a way of teaching children. But of course we all respond similarly to things unknown first by experiment, and only reluctantly by asking for help and explanation if we do at all.
HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64
My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg