question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firefox snap has no access to /tmp profiles path

See original GitHub issue

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/.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
perry-mitchellcommented, Sep 8, 2022

Any fix for this? Running into it in Karma+Firefox now, Ubuntu 22.04, Firefox 104.0.2:

image

4reactions
ipbc-devcommented, Oct 19, 2022

Many thanks for your reply. I confirm the profile option works correctly.

        customLaunchers: {
            'FirefoxHeadless': {
                base: 'Firefox',
                flags: [ '-headless' ],
                profile: require('path').join(__dirname, 'tmp'),
            }
        },

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharing files via /tmp - snapd - snapcraft.io
Firefox plugs the 'home' interface and so if it is connected it is able to create the temporary directory in ~/Downloads, otherwise it...
Read more >
How to open local files in Firefox 100 snap? - Mozilla Support
I'm on Ubuntu 22.04 which is using the snap package of Firefox. It seems that I cannot open local files in the /tmp...
Read more >
Bug #1972762 “Firefox and Chromium snaps preventing apps ...
Snaps don't have full access to it by default, but they do have separate spaces under it (/tmp/snap.<snap_name>/tmp/).
Read more >
file:///tmp/ in Firefox does not show contents of /tmp - Super User
It does show the contents of what it thinks is /tmp, it's just not the same /tmp. Linux supports "mount namespaces" which allow...
Read more >
Ubuntu snap packaged Firefox not starting with web-ext run
Firefox should open with copy of desired or default profile. ... to have access to the home directory but not to the system...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found