How to use multiple Opera profiles with just one installation, using the -pd (personal directory) switch
Wednesday, September 28, 2011 3:40:21 PM
To give you a real world use case. When I am helping Linux and FreeBSD users with an issue I can't replicate, I often ask them to test with a clean profile because this provides an easy way to check if it is something about their configuration that is causing them to see the issue.
This is easy to do because I can just ask them to use '-pd' to specify some unusually named folder within their temp directory and it will be created, with a fresh profile, exactly like they performed a clean installation.
For example they could issue the following:
opera-next -pd /tmp/opera_test_profile &and the directory /tmp/opera_test_profile would be created on the fly with a brand new profile.
Now it is possible to do exactly the same thing on Windows and Mac (though because the Opera executable isn't within the startup path on these platforms, you will need to specify that as well).
"C:\Program Files\OperaNext\opera.exe" -pd %tmp%\opera_test_profileMac:
"/Applications/Opera Next.app/Contents/MacOS/Opera" -pd /tmp/opera_test_profile &
Whilst this feature was primarily developed for our own internal use, perhaps users might find novel uses for it as well. Please let us know if you do!
EDIT: As of Opera 15+ the -pd switch is no longer present. However in its place is a new switch ('--data-path=') that works almost exactly the same way, e.g.:
"C:\Program Files\Opera\opera.exe" --data-path=%tmp%\opera_test_profileMac:
/Applications/Opera.app/Contents/MacOS/Opera --data-path=/tmp/opera_test_profile &