Sunday, April 28, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 8309  / 1 Year ago, thu, march 16, 2023, 9:21:59

"Spotify for linux" doesn't show up in default applications menu for Music (system info section in system settings).



Therefore, it also doesn't come in Dash and music media keys don't work as well.



How to make it the default application for playing Music or make media keys work?


More From » default-programs

 Answers
4

Don't have spotify so can only answer question 1 generally



The 'Default music player', or 'Listen to Music' in the Dash is set by whatever app is the default application for audio/x-vorbis+ogg



That is the extent of the usefulness to setting a default music player in System Settings > System Info > Default Applications > Music



To use a player that doesn't show up in the above setting's dropdown list there are 2 ways, most direct, in all cases the app must have a .desktop, in this case maybe spotify.desktop



gedit ~/.local/share/applications/mimeapps.list


In the [Default Applications] section look for this line



 audio/x-vorbis+ogg=


If it's there replace the whatever.desktop with the whatever.desktop of your choice, otherwise just add the line, Example - I've set audacious, you'd be using spotify.desktop if it exists



[Default Applications]
audio/x-vorbis+ogg=audacious2.desktop


Additionally you may want to add that whatever.desktop to the end of the same line in [Added Associations], same example, note that entries in Added end with ;



[Added Associations]
audio/x-vorbis+ogg=vlc.desktop;audacious2.desktop;


The other thing that can be done is to open your app's .desktop file in a text editor, in this case possibly spotify.desktop



Add a %U to the end of the Exec= line, again using as an Example audacious



Exec=audacious2 %U


Also look for a MimeTypes= line & see if there is this entry, audio/x-vorbis+ogg;



If not then just add to end of line


[#40954] Friday, March 17, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
donurp

Total Points: 328
Total Questions: 128
Total Answers: 123

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
;