-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu snap packaged Firefox not starting with web-ext run #1696
Comments
I can confirm the uninstalling the snap package and installing via aptitude solved the problem. I debugged it a little bit - the location that web-ext is searching for profiles in is in fact correct. I also tried using the Profile Manager to create a new addons profile and specified that one using the -p switch and got the same error (demonstrated in the log). For whatever reason, web-ext seems unable to copy profiles created using a snap installed Firefox (it can still see them). Running with |
I can confirm this, I get the exact same error. I am kinda hesistant to uninstall firefox as it is my main browser (e.g. stored passwords). Would be great to find a workaround or bugfix for this. Versions:
|
I should come back to this and dig a bit more to plan a proper fix, but from what I recall the underlying issue is related to the access to the fact that the snap packaged firefox is confined and can only access what it has explicit permissions for. By default the snap packaged firefox binary does seem to have access to the home directory but not to the system As an additional confirmation that this is the actual underlying issue, I tried to explicitly point the temporary directory used by web-ext to a directory inside the user home does fix the issue for me locally by setting the TMPDIR environment var on the web-ext command, e.g.:
|
Ubuntu 21.10, released about a week ago, automatically replaces which firefox
firefox --version
web-ext --version
Using
Using
The message is the same even if Firefox was not running. Setting Is there another combination of environment variables and arguments which works? Regarding picking a snap-accessible temporary directory on Ubuntu, I would suggest |
Hi, just encountered same issue and found this thread via search. Any updates on this issue? Thanks! |
As an alternative, if your main browser is the Snap version of Firefox, you can install Firefox Developer Edition (https://dev.to/harrsh2124/how-to-setup-firefox-developer-edition-on-ubuntu-4inp) and then run web-ext by pointing it to this new install, such as |
I'm in dependency hell on a Raspberry Pi due to web-ext breakage with snap. Does anyone know of a combination of web-ext and firefox (not firefox-esr) that works? |
@rpl Thanks! Additionally, I have to run Firefox on Wayland with Ubuntu 22.04: |
If I run web-ext with |
For anyone this isn't clear yet for: the issue seems to be with snap-installed firefox. amd64/i386 If you're on a regular amd64/i386 architecture, one solution would be to uninstall the snap-installed firefox and install it through Mozilla's repo's (in case of Debian/Ubuntu). To uninstall (Ubuntu):
aarch64 If you're unlucky enough to be running on an ARM processor (like me), Mozilla is not yet providing regular packages for ARM. (The one you're using is probably provided by your distro, like Ubuntu does.) Luckily, Mozilla did just start building Firefox-nightly for ARM. Maybe, by the time you read this, regular releases are also available through the repo. In that case, you can just follow the instructions for amd64 above. Personally I'm using the nightly builds for now. Instead of
Then run Of course, you could also build Firefox for ARM yourself, but this is quite cumbersome as well. Hope this helps someone! |
Is this a feature request or a bug?
Bug
The error is identical to #1607 however the cause is quite likely due to the app being installed via snap.
What is the current behavior?
Running
web-ext run
fails due to missing/inaccessible Firefox profile error.What is the expected or desired behavior?
Firefox should open with copy of desired or default profile.
Version information (for bug reports)
The text was updated successfully, but these errors were encountered: