Tuesday, July 13, 2010

Storing notes of TOMBOY on different location

This guide is intended for Ubuntu users (it may work on other Linux distro though).
If you are running TOMBOY 0.15.6 or later, all your TOMBOY notes are stored on ~/.local/share/tomboy/. You can change its default directory for your notes. This especially makes sense if you dual boot Ubuntu for example with Windows so you only want the same notes accessible from both OSs.
Open terminal then run these commands:
1. sudo cp /etc/profile /etc/profile.bak
(make backup of /etc/profile into /etc/profile.bak)

2. sudo gedit /etc/profile
(edit /etc/profile)

3.
copy and paste this line (without quotes): "export TOMBOY_PATH=/media/STORAGE/Tomboy_notes". This will set up "/media/STORAGE/Tomboy_notes" for your Tomboy PATH. Change "/media/STORAGE/Tomboy_notes" accordingly to what directory you want to store your notes.


4. Restart the system and now Tomboy will read notes stored in that directory.

Good luck.

5 comments:

Anonymous said...

Excellent, just what I was looking for. Easy to set-up - works perfectly. Thanks for this!

Anonymous said...

This worked for Windows as well.

Unknown said...
This comment has been removed by the author.
Anonymous said...

Hi,
how to make it working in windows please?

Thanks!

Martin Mehlspuck said...

You can do it in Windows by editing the "System Environment Variable" and add a new variable called "TOMBOY_PATH" with a directory path as value (e.g. C:\users\bob\Dropbox\Tomboy) where tomboy will then save it's notes.