The Spotify client installed from the snap store is barely usable on HiDPI displays and there seem to be no built-in options to scale the UI. Is there a workaround to scale it?
3 Answers
There is a fairly stable workaround for this. This is discussed in the Spotify forum.
To scale the UI you can set a different scale factor at the application launch. So you want to edit the .desktop file Ubuntu uses to launch spotify to adopt a custom scale factor. As you've installed it from the snap store it will likely be located at /var/lib/snapd/desktop/applications/spotify_spotify.desktop. If not you can use find like this: sudo find / -type f -iname spotify.desktop.
Then you just have to edit the Exec directive of this file to include the --force-device-scale-factor=X option, where X is the scale factor multiplier:
Here I use vim for editing the file but nano or gedit can be used as well.
sudo vim /var/lib/snapd/desktop/applications/spotify_spotify.desktop
And then you change the Exec directive to include the option:
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/spotify_spotify.desktop /snap/bin/spotify --force-device-scale-factor=2.5 %U
You save the file, close Spotify, and open it again: it should be scaled properly now.
- 6,222
In recent versions you can:
CTRL++: increase the sizeCTRL+-: decrease the sizeCTRL+0: reset the size
Warning:
- Don't use
SHIFTeven if you need it, just press+,-or0withoutSHIFT- Don't use the numpad keys
- 426
More of a hack than a solution.
Install the PWA:
- Head to https://open.spotify.com/
- Login to your account
- Your browser should now present the installation of the website as a PWA (it can be discrete, in Chrome a little install icon will appear at the end of the address bar). Install it.
Since it renders in the native browser scaling, no issues with the display's pixel density.
Moreover, the PWA brings advantages over the snap version like faster startup times, better music track control integration with keyboard shortcuts, and obviously less storage if that interests you!
- 6,222
- 41