Browser profiles in Chromium May 17, 2010Posted by jdstrand in ubuntu.
A coworker turned me onto browser profiles in Firefox (thanks Kees!). Browser profiles are a great way to keep your passwords, bookmarks, preferences and even extensions separate. I like to use one for work and one for personal stuff (and a few others). For more information on how to use them in Firefox, see http://support.mozilla.com/en-US/kb/profiles.
I started playing with Chromium lately, and found that it also supports profiles (see http://www.chromium.org/user-experience/user-data-directory), but not quite as conveniently as Firefox. With Firefox, you can launch it like so:
$ firefox -ProfileManager -no-remote
and get a nice little dialog. Well, I wanted the same in Chromium, so I hacked up this little script which achieves the same:
for d in `find -H $topdir -maxdepth 1 -mindepth 1 -type d` ; do
if [ "$d" != "$topdir/Default" ] && [ "$d" != "$topdir/Dictionaries" ]; then
profiles="$profiles False `basename $d`"
if ans=`zenity --title "Chromium profile chooser" --text "Choose a profile from the list below:" --list --radiolist --column "Profile" --column "Item" $profiles` ; then
if [ "$ans" = "Default" ]; then
chromium-browser --user-data-dir="$topdir/$ans" $@
I saved this as $HOME/bin/chromium-launcher.sh then created a launcher in Gnome using:
/home/<my username>/bin/chromium-launcher.sh %u
This should pick up new profiles as you add them and also works the first time you launch Chromium. Enjoy!