Either [snap](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop), [flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop) (stable-only, no nightly/beta/esr released IIUC) and debian would share the same template .desktop file which is then customized by script, or different desktop files should be kept manually in sync. * package name: * Debian: use `MOZ_APP_REMOTINGNAME` (firefox, firefox-beta, firefox-nightly, firefox-esr) * Flatpak: keep `org.mozilla.firefox` (or use `org.mozilla.MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `firefox` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * desktop file name * Debian: use `MOZ_APP_REMOTINGNAME.desktop` to avoid bug 1826330. * Flatpak: keep `org.mozilla.firefox.desktop` (or use `org.mozilla.MOZ_APP_REMOTINGNAME.desktop`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: rather keep `firefox.desktop` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * Name: use/keep MOZ_APP_DISPLAYNAME (Firefox, Firefox Nightly) * Icon * Debian: use `Icon=MOZ_APP_REMOTINGNAME` * [add symlinks](https://salsa.debian.org/mozilla-team/firefox/-/blob/release/master/debian/browser.links.in): e.g. /usr/share/MOZ_APP_REMOTINGNAME/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/MOZ_APP_REMOTINGNAME.png * Flatpak: keep `Icon=org.mozilla.firefox.desktop` (or use `org.mozilla.MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep * StartupWMClass * Debian: use `StartupWMClass=MOZ_APP_REMOTINGNAME` * Flatpak: keep `StartupWMClass=firefox` (or use `StartupWMClass=MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: add `StartupWMClass=MOZ_APP_REMOTINGNAME` for example, add such a line [after this line](https://github.com/canonical/firefox-snap/blob/c717748606107185f8e6a2130f2e7c6e28ecb0ad/snapcraft.yaml#L326) (repo's nightly branch): `sed -i 's/StartupWMClass=MOZ_APP_REMOTINGNAME/StartupWMClass=firefox-nightly/' $SNAPCRAFT_PART_INSTALL/firefox.desktop` * Exec * Debian: * try to use MOZ_APP_REMOTINGNAME, otherwise /usr/lib/MOZ_APP_REMOTINGNAME/firefox. `Exec=MOZ_APP_REMOTINGNAME %u` `Exec=MOZ_APP_REMOTINGNAME --new-window %u` `Exec=MOZ_APP_REMOTINGNAME --private-window %u` `Exec=MOZ_APP_REMOTINGNAME --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * symlink already exists: /usr/lib/MOZ_APP_REMOTINGNAME/firefox /usr/bin/MOZ_APP_REMOTINGNAME * Flatpak: keep `Exec=firefox` (or use `Exec=MOZ_APP_REMOTINGNAME %u`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `Exec=firefox %u` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * add `Exec=firefox --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * MimeType * consider using this ([snap's](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop) + some additions): text/html; text/xml; x-scheme-handler/http; x-scheme-handler/https; x-scheme-handler/ftp; <-- consider removing (bug 1574475) x-scheme-handler/chrome; application/xhtml+xml; application/xml; application/x-xpinstall; application/json; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#38) application/pdf; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#58) application/rdf+xml; application/rss+xml; audio/flac; <-- consider adding audio/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#147) audio/webm; <-- consider adding image/avif; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1641) image/gif; image/jpeg; image/png; image/svg+xml; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#80) image/webp; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1639) video/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#163) video/webm;
Bug 1824327 Comment 5 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Either [snap](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop), [flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop) (stable-only, no nightly/beta/esr released IIUC) and debian would share the same template .desktop file which is then customized by script, or different desktop files should be kept manually in sync. * package name: * Debian: use `MOZ_APP_REMOTINGNAME` (firefox, firefox-beta, firefox-nightly, firefox-esr) * Flatpak: keep `org.mozilla.firefox` (or use `org.mozilla.MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `firefox` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * desktop file name * Debian: use `MOZ_APP_REMOTINGNAME.desktop` to avoid bug 1826330. * Flatpak: keep `org.mozilla.firefox.desktop` (or use `org.mozilla.MOZ_APP_REMOTINGNAME.desktop`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: rather keep `firefox.desktop` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * Name: use/keep MOZ_APP_DISPLAYNAME (Firefox, Firefox Nightly) * Icon * Debian: use `Icon=MOZ_APP_REMOTINGNAME` * [add symlinks](https://salsa.debian.org/mozilla-team/firefox/-/blob/release/master/debian/browser.links.in): e.g. /usr/share/MOZ_APP_REMOTINGNAME/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/MOZ_APP_REMOTINGNAME.png * Flatpak: keep `Icon=org.mozilla.firefox.desktop` (or use `org.mozilla.MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep * StartupWMClass * Debian: use `StartupWMClass=MOZ_APP_REMOTINGNAME` * Flatpak: keep `StartupWMClass=firefox` (or use `StartupWMClass=MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) Edit: With bug 1826330 it would need to become org.mozilla.MOZ_APP_REMOTINGNAME or be removed. * Snap: add `StartupWMClass=MOZ_APP_REMOTINGNAME` for example, add such a line [after this line](https://github.com/canonical/firefox-snap/blob/c717748606107185f8e6a2130f2e7c6e28ecb0ad/snapcraft.yaml#L326) (repo's nightly branch): `sed -i 's/StartupWMClass=MOZ_APP_REMOTINGNAME/StartupWMClass=firefox-nightly/' $SNAPCRAFT_PART_INSTALL/firefox.desktop` Edit: With bug 1826330 it would need to become firefox_firefox or firefox+userdefinedaliasname_firefox, but as it's likely not possible to set that, StartupWMClass can be removed then due to g_set_prgname(firefox[+SNAP_INSTANCE_KEY]_firefox). * Exec * Debian: * try to use MOZ_APP_REMOTINGNAME, otherwise /usr/lib/MOZ_APP_REMOTINGNAME/firefox. `Exec=MOZ_APP_REMOTINGNAME %u` `Exec=MOZ_APP_REMOTINGNAME --new-window %u` `Exec=MOZ_APP_REMOTINGNAME --private-window %u` `Exec=MOZ_APP_REMOTINGNAME --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * symlink already exists: /usr/lib/MOZ_APP_REMOTINGNAME/firefox /usr/bin/MOZ_APP_REMOTINGNAME * Flatpak: keep `Exec=firefox` (or use `Exec=MOZ_APP_REMOTINGNAME %u`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `Exec=firefox %u` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * add `Exec=firefox --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * MimeType * consider using this ([snap's](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop) + some additions): text/html; text/xml; x-scheme-handler/http; x-scheme-handler/https; x-scheme-handler/ftp; <-- consider removing (bug 1574475) x-scheme-handler/chrome; application/xhtml+xml; application/xml; application/x-xpinstall; application/json; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#38) application/pdf; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#58) application/rdf+xml; application/rss+xml; audio/flac; <-- consider adding audio/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#147) audio/webm; <-- consider adding image/avif; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1641) image/gif; image/jpeg; image/png; image/svg+xml; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#80) image/webp; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1639) video/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#163) video/webm;
Either [snap](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop), [flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop) (stable-only, no nightly/beta/esr released IIUC) and debian would share the same template .desktop file which is then customized by script, or different desktop files should be kept manually in sync. * package name: * Debian: use `MOZ_APP_REMOTINGNAME` (firefox, firefox-beta, firefox-nightly, firefox-esr) * Flatpak: keep `org.mozilla.firefox` (or use `org.mozilla.MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `firefox` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * desktop file name * Debian: use `MOZ_APP_REMOTINGNAME.desktop` to avoid bug 1826330. * Flatpak: keep `org.mozilla.firefox.desktop` (or use `org.mozilla.MOZ_APP_REMOTINGNAME.desktop`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: rather keep `firefox.desktop` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * Name: use/keep MOZ_APP_DISPLAYNAME (Firefox, Firefox Nightly) * Icon * Debian: use `Icon=MOZ_APP_REMOTINGNAME` * [add symlinks](https://salsa.debian.org/mozilla-team/firefox/-/blob/release/master/debian/browser.links.in): e.g. /usr/share/MOZ_APP_REMOTINGNAME/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/MOZ_APP_REMOTINGNAME.png * Flatpak: keep `Icon=org.mozilla.firefox.desktop` (or use `org.mozilla.MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep * StartupWMClass * Debian: use `StartupWMClass=MOZ_APP_REMOTINGNAME` * Flatpak: keep `StartupWMClass=firefox` (or use `StartupWMClass=MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) Edit: With bug 1826330 it would (then) need to become org.mozilla.MOZ_APP_REMOTINGNAME or be removed. * Snap: add `StartupWMClass=MOZ_APP_REMOTINGNAME` for example, add such a line [after this line](https://github.com/canonical/firefox-snap/blob/c717748606107185f8e6a2130f2e7c6e28ecb0ad/snapcraft.yaml#L326) (repo's nightly branch): `sed -i 's/StartupWMClass=MOZ_APP_REMOTINGNAME/StartupWMClass=firefox-nightly/' $SNAPCRAFT_PART_INSTALL/firefox.desktop` Edit: With bug 1826330 it would (then) need to become firefox_firefox or firefox+userdefinedaliasname_firefox, but as it's likely not possible to set that, StartupWMClass can be removed (then) due to g_set_prgname(firefox[+SNAP_INSTANCE_KEY]_firefox). * Exec * Debian: * try to use MOZ_APP_REMOTINGNAME, otherwise /usr/lib/MOZ_APP_REMOTINGNAME/firefox. `Exec=MOZ_APP_REMOTINGNAME %u` `Exec=MOZ_APP_REMOTINGNAME --new-window %u` `Exec=MOZ_APP_REMOTINGNAME --private-window %u` `Exec=MOZ_APP_REMOTINGNAME --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * symlink already exists: /usr/lib/MOZ_APP_REMOTINGNAME/firefox /usr/bin/MOZ_APP_REMOTINGNAME * Flatpak: keep `Exec=firefox` (or use `Exec=MOZ_APP_REMOTINGNAME %u`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `Exec=firefox %u` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * add `Exec=firefox --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * MimeType * consider using this ([snap's](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop) + some additions): text/html; text/xml; x-scheme-handler/http; x-scheme-handler/https; x-scheme-handler/ftp; <-- consider removing (bug 1574475) x-scheme-handler/chrome; application/xhtml+xml; application/xml; application/x-xpinstall; application/json; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#38) application/pdf; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#58) application/rdf+xml; application/rss+xml; audio/flac; <-- consider adding audio/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#147) audio/webm; <-- consider adding image/avif; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1641) image/gif; image/jpeg; image/png; image/svg+xml; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#80) image/webp; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1639) video/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#163) video/webm;
Either [snap](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop), [flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop) (stable-only, no nightly/beta/esr released IIUC) and debian would share the same template .desktop file which is then customized by script, or different desktop files should be kept manually in sync. * package name: * Debian: use `MOZ_APP_REMOTINGNAME` (firefox, firefox-beta, firefox-nightly, firefox-esr) * Flatpak: keep `org.mozilla.firefox` (or use `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `firefox` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * desktop file name * Debian: use `MOZ_APP_REMOTINGNAME.desktop` to avoid bug 1826330. * Flatpak: keep `org.mozilla.firefox.desktop` (or use `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">.desktop`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: rather keep `firefox.desktop` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * Name: use/keep MOZ_APP_DISPLAYNAME (Firefox, Firefox Nightly) * Icon * Debian: use `Icon=MOZ_APP_REMOTINGNAME` * [add symlinks](https://salsa.debian.org/mozilla-team/firefox/-/blob/release/master/debian/browser.links.in): e.g. /usr/share/MOZ_APP_REMOTINGNAME/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/MOZ_APP_REMOTINGNAME.png * Flatpak: keep `Icon=org.mozilla.firefox.desktop` (or use `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep * StartupWMClass * Debian: use `StartupWMClass=MOZ_APP_REMOTINGNAME` * Flatpak: keep `StartupWMClass=firefox` (or use `StartupWMClass=MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) Edit: With bug 1826330 it would (then) need to become `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">` or be removed. * Snap: add `StartupWMClass=MOZ_APP_REMOTINGNAME` for example, add such a line [after this line](https://github.com/canonical/firefox-snap/blob/c717748606107185f8e6a2130f2e7c6e28ecb0ad/snapcraft.yaml#L326) (repo's nightly branch): `sed -i 's/StartupWMClass=MOZ_APP_REMOTINGNAME/StartupWMClass=firefox-nightly/' $SNAPCRAFT_PART_INSTALL/firefox.desktop` Edit: With bug 1826330 it would (then) need to become firefox_firefox or firefox+userdefinedaliasname_firefox, but as it's likely not possible to set that, StartupWMClass can be removed (then) due to g_set_prgname(firefox[+SNAP_INSTANCE_KEY]_firefox). * Exec * Debian: * try to use MOZ_APP_REMOTINGNAME, otherwise /usr/lib/MOZ_APP_REMOTINGNAME/firefox. `Exec=MOZ_APP_REMOTINGNAME %u` `Exec=MOZ_APP_REMOTINGNAME --new-window %u` `Exec=MOZ_APP_REMOTINGNAME --private-window %u` `Exec=MOZ_APP_REMOTINGNAME --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * symlink already exists: /usr/lib/MOZ_APP_REMOTINGNAME/firefox /usr/bin/MOZ_APP_REMOTINGNAME * Flatpak: keep `Exec=firefox` (or use `Exec=MOZ_APP_REMOTINGNAME %u`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `Exec=firefox %u` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * add `Exec=firefox --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * MimeType * consider using this ([snap's](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop) + some additions): text/html; text/xml; x-scheme-handler/http; x-scheme-handler/https; x-scheme-handler/ftp; <-- consider removing (bug 1574475) x-scheme-handler/chrome; application/xhtml+xml; application/xml; application/x-xpinstall; application/json; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#38) application/pdf; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#58) application/rdf+xml; application/rss+xml; audio/flac; <-- consider adding audio/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#147) audio/webm; <-- consider adding image/avif; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1641) image/gif; image/jpeg; image/png; image/svg+xml; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#80) image/webp; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1639) video/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#163) video/webm;
Either [snap](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop), [flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop) (stable-only, no nightly/beta/esr released IIUC) and debian would share the same template .desktop file which is then customized by script, or different desktop files should be kept manually in sync. * package name: * Debian: use `MOZ_APP_REMOTINGNAME` (firefox, firefox-beta, firefox-nightly, firefox-esr) * Flatpak: keep `org.mozilla.firefox` (or use `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `firefox` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * desktop file name * Debian: use `MOZ_APP_REMOTINGNAME.desktop` to avoid bug 1826330. * Flatpak: keep `org.mozilla.firefox.desktop` (or use `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">.desktop`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: rather keep `firefox.desktop` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * Name: use/keep MOZ_APP_DISPLAYNAME (Firefox, Firefox Nightly) * Icon * Debian: use `Icon=MOZ_APP_REMOTINGNAME` * [add symlinks](https://salsa.debian.org/mozilla-team/firefox/-/blob/release/master/debian/browser.links.in): e.g. /usr/share/MOZ_APP_REMOTINGNAME/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/MOZ_APP_REMOTINGNAME.png * Flatpak: keep `Icon=org.mozilla.firefox` (or use `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep * StartupWMClass * Debian: use `StartupWMClass=MOZ_APP_REMOTINGNAME` * Flatpak: keep `StartupWMClass=firefox` (or use `StartupWMClass=MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) Edit: With bug 1826330 it would (then) need to become `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">` or be removed. * Snap: add `StartupWMClass=MOZ_APP_REMOTINGNAME` for example, add such a line [after this line](https://github.com/canonical/firefox-snap/blob/c717748606107185f8e6a2130f2e7c6e28ecb0ad/snapcraft.yaml#L326) (repo's nightly branch): `sed -i 's/StartupWMClass=MOZ_APP_REMOTINGNAME/StartupWMClass=firefox-nightly/' $SNAPCRAFT_PART_INSTALL/firefox.desktop` Edit: With bug 1826330 it would (then) need to become firefox_firefox or firefox+userdefinedaliasname_firefox, but as it's likely not possible to set that, StartupWMClass can be removed (then) due to g_set_prgname(firefox[+SNAP_INSTANCE_KEY]_firefox). * Exec * Debian: * try to use MOZ_APP_REMOTINGNAME, otherwise /usr/lib/MOZ_APP_REMOTINGNAME/firefox. `Exec=MOZ_APP_REMOTINGNAME %u` `Exec=MOZ_APP_REMOTINGNAME --new-window %u` `Exec=MOZ_APP_REMOTINGNAME --private-window %u` `Exec=MOZ_APP_REMOTINGNAME --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * symlink already exists: /usr/lib/MOZ_APP_REMOTINGNAME/firefox /usr/bin/MOZ_APP_REMOTINGNAME * Flatpak: keep `Exec=firefox` (or use `Exec=MOZ_APP_REMOTINGNAME %u`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `Exec=firefox %u` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * add `Exec=firefox --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * MimeType * consider using this ([snap's](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop) + some additions): text/html; text/xml; x-scheme-handler/http; x-scheme-handler/https; x-scheme-handler/ftp; <-- consider removing (bug 1574475) x-scheme-handler/chrome; application/xhtml+xml; application/xml; application/x-xpinstall; application/json; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#38) application/pdf; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#58) application/rdf+xml; application/rss+xml; audio/flac; <-- consider adding audio/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#147) audio/webm; <-- consider adding image/avif; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1641) image/gif; image/jpeg; image/png; image/svg+xml; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#80) image/webp; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1639) video/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#163) video/webm;
Either [snap](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop), [flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop) (stable-only, no nightly/beta/esr released IIUC) and debian would share the same template .desktop file which is then customized by script, or different desktop files should be kept manually in sync. * package name: * Debian: use `MOZ_APP_REMOTINGNAME` (firefox, firefox-beta, firefox-nightly, firefox-esr) * Flatpak: keep `org.mozilla.firefox` (or use `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `firefox` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * desktop file name * Debian: use `MOZ_APP_REMOTINGNAME.desktop` to avoid bug 1826330. * Flatpak: keep `org.mozilla.firefox.desktop` (or use `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">.desktop`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: rather keep `firefox.desktop` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * Name: use/keep MOZ_APP_DISPLAYNAME (Firefox, Firefox Nightly) * Icon * Debian: use `Icon=MOZ_APP_REMOTINGNAME` * [add symlinks](https://salsa.debian.org/mozilla-team/firefox/-/blob/release/master/debian/browser.links.in): e.g. /usr/share/MOZ_APP_REMOTINGNAME/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/MOZ_APP_REMOTINGNAME.png * Flatpak: keep `Icon=org.mozilla.firefox` (or use `org.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep * StartupWMClass * Debian: use `StartupWMClass=MOZ_APP_REMOTINGNAME` * Flatpak: keep `StartupWMClass=firefox` (or use `StartupWMClass=MOZ_APP_REMOTINGNAME`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: add `StartupWMClass=MOZ_APP_REMOTINGNAME` for example, add such a line [after this line](https://github.com/canonical/firefox-snap/blob/c717748606107185f8e6a2130f2e7c6e28ecb0ad/snapcraft.yaml#L326) (repo's nightly branch): `sed -i 's/StartupWMClass=MOZ_APP_REMOTINGNAME/StartupWMClass=firefox-nightly/' $SNAPCRAFT_PART_INSTALL/firefox.desktop` * Exec * Debian: * try to use MOZ_APP_REMOTINGNAME, otherwise /usr/lib/MOZ_APP_REMOTINGNAME/firefox. `Exec=MOZ_APP_REMOTINGNAME %u` `Exec=MOZ_APP_REMOTINGNAME --new-window %u` `Exec=MOZ_APP_REMOTINGNAME --private-window %u` `Exec=MOZ_APP_REMOTINGNAME --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * symlink already exists: /usr/lib/MOZ_APP_REMOTINGNAME/firefox /usr/bin/MOZ_APP_REMOTINGNAME * Flatpak: keep `Exec=firefox` (or use `Exec=MOZ_APP_REMOTINGNAME %u`. At the moment, only Firefox Stable is released as Flatpak.) * Snap: keep `Exec=firefox %u` (The package is always named `firefox` and only one channel of it - stable, beta, edge (nightly), esr - can be installed at the same time.) * add `Exec=firefox --ProfileManager %u` [from flatpak](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop#380) * MimeType * consider using this ([snap's](https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop) + some additions): text/html; text/xml; x-scheme-handler/http; x-scheme-handler/https; x-scheme-handler/ftp; <-- consider removing (bug 1574475) x-scheme-handler/chrome; application/xhtml+xml; application/xml; application/x-xpinstall; application/json; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#38) application/pdf; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#58) application/rdf+xml; application/rss+xml; audio/flac; <-- consider adding audio/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#147) audio/webm; <-- consider adding image/avif; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1641) image/gif; image/jpeg; image/png; image/svg+xml; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#80) image/webp; [<-- from Windows](https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/browser/installer/windows/nsis/shared.nsh#1639) video/ogg; [<-- from MacOS](https://searchfox.org/mozilla-central/rev/9e3413f54ed6c9165b5659558091d766d34a731f/browser/app/macbuild/Contents/Info.plist.in#163) video/webm;