-
Notifications
You must be signed in to change notification settings - Fork 53
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
Firefox snap has no access to /tmp profiles path #183
Comments
I did not understand the problem. Can you clarify and provide repro steps? |
Repro: Install Firefox as snap (linux) and remove other installed Firefox. |
Create a file in /tmp, say using xfce4-screenshooter
Try to open the file in Firefox
Reports the following
Potentially firefox in a snap thinks /tmp is stored in ~/Downloads/firefox.tmp firefox prevents access to folders like /var, /etc, /opt. but with /tmp it fakes it. Going to "/" does not show all directories either -- creating a root directory "/test", and even chmod/chowning to the user, does not update. This might be because firefox snapshots it on bootup? Firefox does allow access to /var/tmp, which is updated. It's inconsistent and not very well explained. |
What's your karma config for launching Firefox? |
Hi. So this seems to be the issue I am facing after all. Unfortunately it seems Firefox from apt is also broken to some extent, just differently so no longer a workaround :( Would be really nice if #47 could be fixed/merged. Thanks in advance. |
Many thanks for your reply. I confirm the profile option works correctly.
I leave this as an exercise to a future reader to define a good, possibly random, location and clean up after test suite completes, if necessary. This should make us able to workaround this annoying bug that Ubuntu snap has. |
Per karma-runner/karma-firefox-launcher#183, the snap version of firefox does not work with Karma.
Cheers for the workaround! I like to have my downloads saved to |
Using a local profile directory, this works on modern Linux, too: karma-runner/karma-firefox-launcher#183 (comment)
Using a local profile directory, this works on modern Linux, too: karma-runner/karma-firefox-launcher#183 (comment)
Using a local profile directory, this works on modern Linux, too: karma-runner/karma-firefox-launcher#183 (comment)
When running Firefox as snap, he does't have access to the
/tmp
directory and therefore firefox cannot load the profile. It was really hard to debug, because FIrefox doesn't fail to start in-headless
mode and therefore there is just a karma timeout.FIrefox solves that by putting tmp files into
~/Downloads/firefox.tmp/
.The text was updated successfully, but these errors were encountered: