Houston4444 / RaySession

Session manager for linux musical programs
GNU General Public License v2.0
177 stars 20 forks source link

Use Desktop File metadata? #124

Open mxmilkiib opened 3 years ago

mxmilkiib commented 3 years ago

As per https://github.com/jackaudio/new-session-manager/issues/40 and #lad discussion.

Houston4444 commented 3 years ago

I am interested, this method is more reliable than search '/nsm/server/announce' in a binary (which is not a binary in case of python programs, and programs started by a script).

However, I am not sure to want to auto add programs if they have the key in desktop file. I had some bad experiences with Hydrogen NSM support (v1.0.x), which was globally broken, with a worse than all user experience, largely worse than what the Ray Hack (LASH) template offers. For example, RS Hydrogen's template now uses NSM if hydrogen >= 1.1.0, else it uses LASH.

At origin, the seq66 NSM support was very strange...(program checking if nsmd is running, many other strange things...), that's why I didn't add it to the templates.

IIRC, traktion was talking about add NSM support with totally strange approach, searching more to use server_control capability than make a correct client.

Of course, my position is not fixed, and I would be very happy to change it because it becomes unmanageable, when too much NSM compatible programs appears.

Houston4444 commented 2 years ago

That is now working. It made me change many things, the client templates database is now reloaded on ask, and not at every list/add operation, because read all the desktop files takes some time (~60ms here, but my system is on a little SSD).

Now it is time to make a lot of pull requests to add this key to their desktop file ;)