stut-it Martin Stut - Information Technology Tailored to You
By Martin Stut, 2013-09-17
For some use cases, you'll want to store your Thunderbird profile in a location completely outside the usual places, possibly changing paths (varying mount points of USB memory sticks, varying synchronized directories on different machines), and you don't want to fiddle around with the profile.ini configuration file.
In the Windows world, there are Portable Apps to address this kind of requirement. But in Linux, there are no Portable Apps. But there is a way to run Thunderbird to use a portable profile: by using the command line option
-profile "/path/to/profile"
To verify this method, which I learned about from http://kb.mozillazine.org/Running_from_a_USB_drive_%28Thunderbird%29 , I moved my profile (which happened to be the backup before I reformatted my drive) from /home/martin/.thunderbird/nnnnnnnn.default/* to .../syncstore/tbprofile , so now there is .../syncstore/tbprofile/prefs.js .
Then I created a little shell script, e.g. in .../syncstore/thunderbird.sh , containing just two lines:
#!/bin/sh
thunderbird -profile "./tbprofile/"
The relative path ./tbprofile/ will do. This makes it easier to move the little shell script across devices with different paths.
On Ubuntu Linux, there is no need to specify the path to the Thunderbird executable, because thunderbird is in the OS path and can thus be found directly. Other Linux versions or Mac OS X may be different.
You'll need to set the execute permission, e.g. using your file manager's properties tab.
Of course you'll need to replace .../syncstore with the path where you want your profile to reside, e.g. synchronized storage or a USB memory stick.
Double clicking the shell script will start Thunderbird using the portable profile.
I was pleasantly surprised to learn, that you can share a Thunderbird profile across operating systems. I have tested it with Linux vs. Windows:
After arranging synchronization (e.g. TrueCrypt container in cloud storage, BitTorrent Sync, USB memory stick, ...) between my Xubuntu Linux desktop and my Windows 7 Starter netbook, I just had to create a little batch file for the windows side containing
"C:\Program Files\Mozilla Thunderbird\thunderbird.exe" -profile "D:\...\syncstore\tbprofile"
The quotes are important. C:\Program Files\ varies with Windows version (XP vs. 7), language (German vs. English) and bitness (32 vs. 64). Of course you need to replace D:\...\syncstore\tbprofile with the synchronized path on the windows side.
A modified copy pf the desktop link probably would have done too.
This enables me to switch machines hourly (waiting for the profile to synchronize) while keeping the same profile.
Because this profile sharing works on Linux and Windows, it'll probably work on Mac OS X as well (I don't have a Mac to try).