Open Bug 1604376 Opened 1 month ago Updated 11 days ago

add command-line option to create a temporary profile that is deleted on exit


(Toolkit :: Startup and Profile System, enhancement, P5)






(Reporter: pabs3, Unassigned)


Google Chromium has the --temp-profile command-line option to use a temp profile:

          Use a throw-away/temporary profile for this session.  This creates an entirely new user profile temporarily.  It is not the same as incognito mode.

It would be nice if Firefox had a similar option that would create a new profile in a temporary directory, start Firefox using that and delete the directory when Firefox exits.

I'm currently using the following shell script to work around this feature being missing in Firefox:

set -e
dir="$(mktemp --tmpdir --directory firefox-dev-XXXXXXXX)"
cleanup () { rm --recursive --force "$dir"; }
trap cleanup EXIT
firefox -no-remote -profile "$dir" "$@"

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Startup and Profile System
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.