[meta] Use Flatpak framework to distribute Firefox for Linux users
Categories
(Firefox Build System :: Third Party Packaging, enhancement)
Tracking
(Not tracked)
People
(Reporter: diazbastian, Unassigned)
References
(Depends on 61 open bugs, )
Details
(Keywords: meta)
Reporter | ||
Updated•8 years ago
|
Updated•8 years ago
|
Reporter | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Updated•8 years ago
|
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Reporter | ||
Comment 12•8 years ago
|
||
Reporter | ||
Comment 13•8 years ago
|
||
Updated•8 years ago
|
Comment 14•8 years ago
|
||
Comment 15•8 years ago
|
||
Comment 16•8 years ago
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Updated•7 years ago
|
Comment 19•7 years ago
|
||
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
Comment 22•7 years ago
|
||
Comment 23•7 years ago
|
||
Comment 24•7 years ago
|
||
Comment hidden (advocacy) |
Comment 26•7 years ago
|
||
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Updated•7 years ago
|
Comment 29•7 years ago
|
||
Comment 30•7 years ago
|
||
Comment 31•7 years ago
|
||
Updated•6 years ago
|
Comment hidden (advocacy) |
Comment 33•6 years ago
|
||
Comment 34•6 years ago
|
||
Updated•6 years ago
|
Comment 35•6 years ago
|
||
Comment 36•6 years ago
|
||
I can see there has been some discussion about Flatpak and Snap here.
I wanted to point out that my colleague Valentin spent some time last month demonstrating a build of a single application targeting both snap and flatpak, this is interesting as it allows one to reuse much of the same build instructions, reducing the maintenance burden of supporting both distribution methods.
Coincidentally, he used Firefox as the application to build for this experiment. As it is a complicated enough build, Firefox was a good choice for the demo.
I thought it might be helpful to link his work here:
Blog post: https://valentindavid.com/posts/2019-03-27-freedesktop-sdk-snap/
Gitlab repo: https://gitlab.com/valentindavid/firefox-buildstream/
Updated•5 years ago
|
Comment 37•5 years ago
|
||
I tried beta build from flathub and noticed that wayland cannot be enabled, even with flatpak override, should i file a bug?
Comment 38•5 years ago
|
||
@Seqularise You likely forgot to add the --user, it seems this flatpak is installed to the local user only. I got it working via "flatpak override --env=GDK_BACKEND=wayland org.mozilla.firefox --user"
Comment 39•5 years ago
|
||
Overriding GDK_BACKEND=wayland
breaks Firefox with the following message:
(firefox:2): Gtk-WARNING **: cannot open display: :99.0
Comment 40•5 years ago
|
||
The flatpak build requires --socket=wayland
to be set for Wayland support to be enabled. Run
flatpak override [--user] --socket=wayland org.mozilla.firefox
to fix that. Should probably be added to finish-args
.
Updated•5 years ago
|
Comment 41•5 years ago
|
||
My flatpak version of firefox 75 has User Namespaces set to false, is this a bug?
Comment 42•5 years ago
|
||
(In reply to monterro from comment #41)
My flatpak version of firefox 75 has User Namespaces set to false, is this a bug?
Flatpak blocks apps from using User Namespaces so this is expected.
Comment 43•5 years ago
|
||
I just tried out the flathub flatpak for Firefox 75.0 and noticed these things:
- The only filesystem permission is xdg-download. The Fedora flatpak had several other locations enabled including ~/.mozilla. Is the flathub flatpak storing the user profile inside of the flatpak?
- I tried "flatpak run --filesystem=host org.mozilla.Firefox" so that the flatpak could see my profile. I got the warning about running an older version of Firefox even though the latest version of Firefox I have used that profile with is the rpm version of Firefox 75.0. What is going on there? Can I use my existing profile with the flatpak version of Firefox?
Comment 44•5 years ago
|
||
(In reply to wsha.code from comment #43)
I just tried out the flathub flatpak for Firefox 75.0 and noticed these things:
- The only filesystem permission is xdg-download. The Fedora flatpak had several other locations enabled including ~/.mozilla. Is the flathub flatpak storing the user profile inside of the flatpak?
User profile is stored in ~/.var/app/org.mozilla.firefox/.mozilla . It's not shared with profiles created from other firefox packages.
- I tried "flatpak run --filesystem=host org.mozilla.Firefox" so that the flatpak could see my profile. I got the warning about running an older version of Firefox even though the latest version of Firefox I have used that profile with is the rpm version of Firefox 75.0. What is going on there? Can I use my existing profile with the flatpak version of Firefox?
Just copy ~/.mozilla to ~/.var/app/org.mozilla.firefox/.mozilla
Comment 45•5 years ago
|
||
What is the recommended way to provide feedback on the released Flatpak? Do we open new bugs, or is it sufficient to note things here?
After attempting to use this for the last few days, I've noted the following:
- Notifications don't work. I need to run
flatpak override --user org.mozilla.firefox --talk-name=org.freedesktop.Notifications
. - The SpeechSynthesis API doesn't work in the Flatpak, but works fine on my desktop. Guessing another dependency is needed in the Flatpak?
Thanks.
Comment 46•5 years ago
|
||
Just copy ~/.mozilla to ~/.var/app/org.mozilla.firefox/.mozilla
Thanks, I hadn't realized apps stored data in ~/.var. I tried copying ~/.mozilla as suggested, but I still get the dialog about using an older version of Firefox. Both "firefox --version" and "flatpak run org.mozilla.firefox --version" give me "Firefox 75.0". Any idea why the flatpak doesn't like in profile?
Comment 47•5 years ago
|
||
Please open a new bug for any issues you find with the Flatpak. You can find bugs that have already been reported here:
Comment 48•5 years ago
|
||
Updating the URL to reflect bug 1441922 comment 68.
Comment 49•4 years ago
|
||
On ChromeOS, the Downloads
directory does not appear to function correctly. I am not sure if this is a problem with the $xdg_download
setting or something inherent in ChromeOS. Running with --filesystem=home
solves the problem, and makes firefox operate much like it does when installed natively (writing config opts under ~/.mozilla
etc.)
I tried adding --filesystem=~/Downloads
, and was able to navigate to the correct Downloads directory, however subsequent downloads defaulted to the internal, inaccessible download directory and downloaded items were silently dropped.
(I used Flatseal to make these changes more permanent on Linux under ChromeOS)
Updated•3 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
Comment 50•2 years ago
|
||
https://evertpot.com/firefox-ubuntu-snap/ The post was about Snap (some of the issues are present in Flatpak too I assume), but there's a comment saying the Flatpak crash reporting is broken. No more details, but that's one of the things that wouldn't hurt to check once too many...
Updated•2 years ago
|
Description
•