Skip to content

Instantly share code, notes, and snippets.

@pnchinmay
Forked from tlnagy/scaling.md
Last active October 8, 2021 10:00
Show Gist options
  • Save pnchinmay/798a73edc2f492968c57efa343b977b1 to your computer and use it in GitHub Desktop.
Save pnchinmay/798a73edc2f492968c57efa343b977b1 to your computer and use it in GitHub Desktop.
Fix UI scaling in Snap apps

On Ubuntu 20.04, snap apps install here:

/var/lib/snapd/desktop/applications

To fix UI scaling, I just add the following flag to each of the .desktop files for Electron apps in that folder

--force-device-scale-factor=1.2

before %U and this seems to work well for making the UI about 20% larger, which fixes the issues that I had been having on my 1080p screen on a 13" laptop

https://forum.snapcraft.io/t/overriding-desktop-files-on-ubuntu-snaps/6599/4
Add copies of *.desktop entries of snap apps in .local/share/applications directory
Turned out, symlinking isn't necessary
Just delete rofi drun, drun-desktop and run cache files That will refresh rofi's cache

davatorium/rofi#579 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment