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

Categories

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

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: pabs3, Unassigned)

Details

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

   --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:

#!/bin/sh
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.