# 將spotify設為預設linux音樂播放器 ### 1.先找到spotify.desktop檔案位置 檔案位置放在/usr/share/applications/spotify.desktop ### 2.複製到~/.local/share/applications/ ### 3.修改~/.local/share/applications/mimeapps.list在裡面加入 ``` [Default Applications] ... audio/x-vorbis+ogg=spotify.desktop [Added Associations] ... audio/x-vorbis+ogg=spotify.desktop; ``` ### 4.下載spotify_control檔案 在自己電腦裡面/DATA/main/spotify資料夾裏面也有此zip檔案 ### 5.將spotify_control檔案放在某一個路徑裡(預設放在home) ### 6.進入/設定/鍵盤/快捷鍵/自訂快捷 新增spotify快捷 新增名稱隨便你定 指令為: /home/$ {your_username}/spotify_control playpause /home/$ {your_username}/spotify_control next /home/$ {your_username}/spotify_control previous /home/$ {your_username}/spotify_control --->此為路徑(自己修改) 參考網址: https://askubuntu.com/questions/1105363/spotify-keyboard-controls-not-working https://askubuntu.com/questions/95345/how-to-make-spotify-the-default-music-player ###### tags: `linux` `spotify`