Skip to content

Instantly share code, notes, and snippets.

@metaquanta
Last active August 11, 2019 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metaquanta/42c9b32d167ae7638ac09e0bfaf7d123 to your computer and use it in GitHub Desktop.
Save metaquanta/42c9b32d167ae7638ac09e0bfaf7d123 to your computer and use it in GitHub Desktop.
firefox desktop file ( ~/.local/share/applications/.. )
[Desktop Entry]
Type=Application
Version=1.1
Name=Firefox Quantum: Developer Edition
GenericName=Web Browser
Categories=Network;WebBrowser;
Icon=/home/m/.opt/firefox/browser/chrome/icons/default/default128.png
Exec=/home/m/.opt/firefox/firefox-bin %u
Terminal=false
# From firefox-esr.desktop
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=false # Otherwise, you get a "Firefox ... is ready" notification
Encoding=UTF-8
# xwininfo -tree -root:
# 0x2600035 "About Tor - Tor Browser": ("Navigator" "Tor Browser") 1000x965+10+8 +50+27
# 0x2000003 "Editing mozilla-firefox-developer-edition.desktop - Firefox Developer Edition": ("Navigator" "Firefox Developer Edition") 1173x1016+10+8 +354+27
# 0x2c00010 "Mozilla Firefox": ("Navigator" "Firefox-esr") 1280x947+10+45 +50+114
# ...
# firefox-esr.desktop: StartupWMClass=Firefox-esr
# start-tor-browser.desktop: StartupWMClass=Tor Browser
# Therefore:
StartupWMClass=Firefox Developer Edition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment