Spotify is no longer what it used to be. The newer versions of the Spotify client for Linux have lost the ability to hide in the tray. Now they always take up a place on your system tray or dock, but luckily there is a way to minimize Spotify to the system tray in Linux. Let’s see how.
Install KDocker
In order for this to work we are using both the latest version of the Spotify client and KDocker. Although the name begins with a “k”, KDocker is not connected to the KDE desktop. It’s a simple tool that allows you to move any application to the system tray in most popular desktop environments. Although it hasn’t been updated in a while, it still works well for most desktop environments. It is probably the best up-to-date solution for docking the Spotify client.
You can install KDocker in Ubuntu and compatible distributions with:
–
In Fedora, Red Hat, and their siblings try:
Use KDocker to minimize Spotify to the system tray
Once installed, start KDocker from your application menu.
Click the Spotify window to minimize it to the system tray.
Complete! You can find your app in the system tray instead of your system tray.
To display Spotify again, click on the KDocker tray icon and select “Show Spotify”.
You can also right-click the icon and select Dock Other to repeat the process for other apps.
Integrate KDocker with Spotify
As you can see, the above method requires you to run Spotify and KDocker at the same time. Another option is to integrate KDocker with Spotify so that it can be minimized to the tray at any time.
Note that the instructions below use Ubuntu’s standard desktop.
Also, keep in mind that these tweaks only apply to the desktop icon. If you start Spotify in any other way, e.g. E.g. via your app list or the terminal, Spotify behaves normally and does not hide in the tray.
Start by finding Spotify’s icons. Try:
ls /usr/share/icons/Papirus/64x64/apps/spotify.svg
–
–
You should see a list of Spotify-related icons. Make a note of the path to a specific path, e.g. B. “/usr/share/icons/Papirus/64phia64/apps/spotify.svg”.
Copy the desktop entry of the Spotify client to your home folder with the command:
cp /usr/share/applications/spotify.desktop ~/.local/share/applications
–
–
Edit the copied file with your favorite text editor. We prefer nano
, so our command was:
Related : From the Advice Box: Free Kindle Books, Windows 3.1 on the iPad and DIY HDTV Antennas
—
nano ~/.local/share/applications/spotify.desktop
–
–
Find the Exec=spotify %U
Management.
Change it to:
Exec=kdocker -q -o -l -i /usr/share/icons/Papirus/64x64/apps/spotify.svg -n Spotify spotify %U
–
–
The above command will cause KDocker to take over opening the Spotify app so it can be minimized. The path to the Spotify icon is that KDocker will display the Spotify icon in the system tray. Without it, only a general symbol is displayed.
Save the changes with Ctrl + Ö and exit the file with Ctrl + x.
Launch your Spotify and you should see the icon in the system tray.
Click it to minimize Spotify to the system tray.
When you’re tired of using the Spotify client, you can try the Spotify Web Player or use these tips to hide your Spotify listening activity.
–