Closed Bug 1831896 Opened 1 year ago Closed 2 months ago

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)

Desktop
Linux
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1901703

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.

See Also: → 1826330
See Also: → 1832533
See Also: → 1835135

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

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 with Icon=org.mozilla.firefox (or with org.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 with Exec=firefox or the launch script would need to be renamed (Exec=launchscript from appdir/bin)
Assignee: nobody → gabriel
Status: NEW → RESOLVED
Closed: 2 months ago
Duplicate of bug: 1901703
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.