Run flatpak firefox with a throw away profile
Hello Everyone,
for testing purposes i like to use "throw away" firefox profiles. Before switching to flatpak, i used a script which would simply do:
firefox.bin --profile "$(mktemp -d)" --no-remote
Trying the same with the flatpak firefox bundle
flatpak run org.mozilla.firefox --profile "$(mktemp -d)" --no-remote
results in an error that firefox can not find/access its profile directory.
Sadly i did not see anything obvious in man flatpak-run to fix this, so i now
hope someone can help me out or point me in the right direction.
Posted Sep 21, 2021, 11:28 PM UTC
With that command
the
mktemp -dgets run by the shell on your host, so the temporary directory also gets created in/tmpon the host. To run it inside the sandbox, try something like thisI knew there was a better way of doing this. Thanks.