Skip to content

Instantly share code, notes, and snippets.

@kiyui
Created November 26, 2017 14:27
Show Gist options
  • Save kiyui/e0db24940ba4e0bf6c1bd5921c062c2c to your computer and use it in GitHub Desktop.
Save kiyui/e0db24940ba4e0bf6c1bd5921c062c2c to your computer and use it in GitHub Desktop.
HiDPI context menu example
[Desktop Entry]
Name=Spotify
GenericName=Music Player
Comment=Spotify streaming music client
Icon=com.spotify.Client
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client --force-device-scale-factor=2 @@u %U @@
Terminal=false
Type=Application
Categories=Audio;Music;Player;AudioVideo;
MimeType=x-scheme-handler/spotify;
StartupWMClass=Spotify
X-Flatpak-Tags=proprietary;
X-Flatpak=com.spotify.Client
Actions=hi-dpi;low-dpi;
[Desktop Action hi-dpi]
Name=Open with HiDPI scaling
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client --force-device-scale-factor=2 @@u %U @@
[Desktop Action low-dpi]
Name=Open without scaling
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client @@u %U @@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment