I'm using Ubuntu GNOME 17.04 on a high DPI laptop. Gnome (more less) automatically scales applications to be (more or less) usable.

However, snap-apps (e.g. ubuntu-clock-app, keepassxc) are displayed very small, even the mouse pointer is tiny.

Is there a possibility to set high DPI settings for snap-apps?

  • AppImages of digiKam and Krita as well as some regular (GTK2?) apps like VLC Media Player and Master PDF Editor have very large fonts in menus, etc. Theye are quite usable but very odd-looking. – Sadi Feb 5 '18 at 18:38

You can (at least temporarily, until the app's next update, then you might have to do this again) solve this by adding --force-device-scale-factor=2 as a command line parameter.

This can be done by editing the specific app's (e.g. KeepassXC) .desktop file. To find and edit it, follow those steps in a terminal (ctrl + alt + t):

List the files to find the desktop file to edit:

ls /var/lib/snapd/desktop/applications

Open gedit as admin (sudo can't open graphical apps on Wayland. If you're on X, you can also use sudo instead of the admin:// protocol), for example:

gedit admin:///var/lib/snapd/desktop/applications/spotify_spotify.desktop

At the Exec= line, add --force-device-scale-factor=2 before %U

Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/spotify_spotify.desktop /snap/bin/spotify --force-device-scale-factor=2 %U

I'm asking myself this same question. The KeepassXC and Libreoffice snaps for example have a very tiny mouse pointer. Primarily for LibreOffice this is an annoying issue, because when you use Write you never know where the mouse is. Maybe this has to do with the graphic libraries that are used to build these apps. Anyway this is a problem on HDPI devices.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.