Improve the [flatpak] and [snap] desktop entry files by using the strings in linuxDesktopEntry.ftl and the research from bug 1824327
Categories
(Release Engineering :: General, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: gabriel, Assigned: gabriel, Mentored)
References
Details
Modify the Snap and Flatpak repackage tasks to source their translations from browser/locales/en-US/browser/linuxDesktopEntry.ftl and implement the improvements outlined in Bug 1824327.
Comment 1•1 year ago
•
|
||
Snap:
-
appname should ideally stay "firefox" across stable/beta/nightly/esr channels of the "firefox" package, so that the short command keeps possible:
$ snap run firefox
$ snap run firefox_userdefinedaliasforanotherinstance
Otherwise one would have to type$ snap run firefox.firefox-nightly
or$ snap run firefox_userdefinedaliasforanotherinstance.firefox-nightly
. -
Snap doesn't support placing a gnome-search-provider.ini yet
-
You could pregenerate current debian package desktop files as firefox.desktop, firefox-beta.desktop, firefox-aurora.desktop, firefox-nightly.desktop, firefox-esr.desktop
- and then change
desktop: firefox.desktop
in Snapcraft.yaml branches other than stable to
desktop: firefox-nightly.desktop
desktop: firefox-beta.desktop
desktop: firefox-esr.desktop
- import them here and then change Icon and Exec:
cat /usr/share/applications/firefox-nightly.desktop
vs.
https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-snap/firefox.desktop
cat /var/lib/snapd/desktop/applications/firefox_firefox.desktop
https://snapcraft.io/docs/desktop-menu-support- Icon entry of desktop file is replaced here, for example.
Exec=firefox-beta/dev/nightly/esr
would need to be replaced withExec=firefox
(Exec=appname)
- and then change
Flatpak
-
supports placing a gnome-search-provider file: bug 1805440 comment 3
-
pregenerated firefox.desktop file could be copied/downloaded into the workspace as org.mozilla.firefox.desktop here:
cat /usr/share/applications/firefox-nightly.desktop
vs.
https://searchfox.org/mozilla-central/source/taskcluster/docker/firefox-flatpak/org.mozilla.firefox.desktop
cat /var/lib/flatpak/exports/share/applications/org.mozilla.firefox.desktop- Debian's
Icon=firefox
would need to be replaced withIcon=org.mozilla.firefox
(or withorg.mozilla.<MOZ_APP_REMOTINGNAME with "-" replaced with "_">
. Bash example:MOZ_APP_REMOTINGNAME=firefox-nightly; echo org.mozilla.${MOZ_APP_REMOTINGNAME/-/_}
) - If Flatpaks would exist for other channels than stable, Debian's
Exec=firefox-beta/aurora/nightly/esr
would need to be replaced withExec=firefox
or the launch script would need to be renamed (Exec=launchscript from appdir/bin)
- Debian's
Assignee | ||
Updated•1 year ago
|
Updated•2 months ago
|
Description
•