Scaling Spotify client on Linux HiDPI display

Solution 1:

The solution was rather straightforward, that is creating a desktop entry and editing it with your favorite text editor, and adding this argument with some suitable number as a scale, in my example, there is 2.5, but you can use whatever you find suitable:

--force-device-scale-factor=2.5

So, the resulting desktop file could look like this:

[Desktop Entry]
Type=Application
Name=Spotify
GenericName=Music Player
Icon=spotify-client
TryExec=spotify
Exec=spotify --force-device-scale-factor=2.5 %U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify

Source:

  • community.spotify.com