INTERACT FORUM
More => Old Versions => JRiver Media Center 21 for Linux => Topic started by: Awesome Donkey on January 22, 2016, 09:18:02 am
-
NOTE: This will require renaming MC's .desktop file from media center 21.desktop to mediacenter21.desktop - the information about this can be found here (http://www.liberiangeek.net/2012/04/remove-add-media-players-to-ubuntu-sound-menu-in-ubuntu-12-04-precise-pangolin/).
If Media Center can run these commands when installing, it can be integrated into Ubuntu's sound menu for native control, which is outlined in this topic (http://yabb.jriver.com/interact/index.php?topic=102327.0).
This command *should* add Media Center to interested-media-players;
gsettings set com.canonical.indicator.sound interested-media-players "['mediacenter21']"
This command *should* add Media Center to preferred-media-players;
gsettings set com.canonical.indicator.sound preferred-media-players "['mediacenter21']"
And finally this command will remove Media Center from the sound menu;
gsettings set com.canonical.indicator.sound blacklisted-media-players "['mediacenter21']"
Thoughts? Getting this working by default would be pretty nifty and would be one step closer to a more native support feel. :)
-
+1
-
Sensible suggestion. Is this philosophy applicable to the MC Linux default OS?
Or, is there a process whereby on install the OS is interrogated so that a conditional sub-process can be run?
-
Sensible suggestion. Is this philosophy applicable to the MC Linux default OS?
Or, is there a process whereby on install the OS is interrogated so that a conditional sub-process can be run?
For now I just silently run those commands (if gsettings exist) on post-install
I didn't see an agnostic way of doing the equivalent.
-
Have you had any luck getting it working with spaces in the .desktop file?
-
Have you had any luck getting it working with spaces in the .desktop file?
I didn't try, I just used your commands verbatim, I thought it was referring to the executable.
-
Unfortunately it won't work with the spaces in the name of the .desktop file which is what it tries to use. I'll do some research tomorrow to see if there's a way around it.
EDIT: Okay, I have it. It looks like you can install a second .desktop file without spaces, then use the following in that .desktop file to keep it hidden from the menus (so there's only one MC entry in the menus);
NoDisplay=true
That should do it! :)
-
Unfortunately it won't work with the spaces in the name of the .desktop file which is what it tries to use. I'll do some research tomorrow to see if there's a way around it.
EDIT: Okay, I have it. It looks like you can install a second .desktop file without spaces, then use the following in that .desktop file to keep it hidden from the menus (so there's only one MC entry in the menus);
NoDisplay=true
That should do it! :)
Ok, I'll give this a try in the next build.
Thanks for tracking it down!