After a good 10 years, I'm trying Library Server stuff again but unfortunately, it doesn't seem you can serve more than one library from a single server instance. I hadn't remembered that. This is an issue if you have multiple people in the house, each with their own library, or have video, image, and music in their own libraries.
I could probably run a separate docker container for each library but that's a little more overhead than I'd like. There used to be an option in General settings to run multiple instances of MC. It's still in User Settings file but not in the settings dialog any more. You can set it to 1 in the file and it will work but the next time you save the settings dialog, it gets set back to 0 again. It also seems that check for multiple instances is based on something other than process name. Window title maybe? If I start MC locally, then ssh to my media server and run MC via X forwarding, it won't start because the local instance is detected as another instance when it shouldn't be. Trything this was how I remembered the multiple instance flag.
So... I'd like to see the following...
* The multiple instance flag brought back officially and add a command line option for it.
* Add a command line option to specify a profile directory other than ~/.jriver/. If running MC as a service, we could use BindPaths for this but it'd be better to have official support for it.
* Add a command line option to specify the library server port.
* Allow MC to run in /MediaServer mode without an X display and a logged in user.
With those enhancements we could create a single service file named mediacenter@.service that would run...
/usr/bin/mediacenter27 /MediaServer /Library %I /NewInstance /ProfileDir /home/mediacenter/.jriver_%I
Now, having said all of that... You could allow the library server to serve all registered libraries when run in MediaServer mode. Maybe adding a checkbox to the library manager entry to allow remote access as well. The client would just append the name of the library to the media key or host. Still need the X decoupling when in MediaServer mode.
Thoughts?