I have successfully created .desktop files through GUI, and have been doing so for my shell scripts as well. Only problem is my shell scripts run background commands / servers (e.g. python -m http.server), so a tray icon is most suited for them: a small icon signalling that background service is active, which doubles as a quick way to turn it off (without having to know the PID it had been assigned / search for it in System Monitor). Was wondering what you recommend for this use case: e.g. does Plasma offer a way?
There may be a better way but I’ve used the command output widget to do similar things.
It can output info from commands or scripts so I imagine for your use case you’d write a short script to monitor the process and display that output via command output.
It seems the Command Output plasmoid is the best available option at the moment. I use 3 instances of it for different purposes, including one that acts as an email notifier, periodically checking inboxes of several email accounts, and showing the total number of unread emails next to a standard envelope symbol as well as displaying a notification including sender and subject info.
What’s missing is integration with system tray with status icons and “Show when relevant” option.
In deed, there was such a plasmoid that worked well under Plasma 5, but unfortunately its new version, ported to Plasma 6 is not working well ( Scriptinator - KDE Store ).