[tomboy-list] Tomboy notes profile directory

Richard Lee ricardohenrylee at hotmail.com
Fri Dec 4 10:25:33 PST 2009


Hi Sandy,

Thanks Sandy, I had cloned the repo and found the same bit of code at the same time you emailed me. I changed
Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData)
to
Environment.GetEnvironmentVariable("APPDATA")
and then set the APPDATA environement varible with a batch file.

I should have read the bottom of the e-mail as well because using NoteDirectoryWatcher and sharing the actual notes directory solves any problems about setting the location of the sync directory or the location of the preferences file.

The last bit of the email solved everything for me. Thanks again Sandy.

Richard

> Date: Fri, 4 Dec 2009 07:39:28 -0800
> Subject: Re: [tomboy-list] Tomboy notes profile directory
> From: sanfordarmstrong at gmail.com
> To: ricardohenrylee at hotmail.com
> CC: tomboy-list at lists.beatniksoftware.com
> 
> The code determining the location of the config directory is in
> WindowsApplication.cs and looks a bit like this:
> 
> string appDataPath = Path.Combine (Environment.GetFolderPath
> (Environment.SpecialFolder.ApplicationData),
> 			                                   tomboyDirName);
> 			string appDataPath = Path.Combine (Environment.GetFolderPath
> (Environment.SpecialFolder.ApplicationData),
> 			                                   tomboyDirName);
> 			confDir = Path.Combine (appDataPath, "config");
> 
> I'm not sure how, on Windows, you can change the return value of
> GetFolderPath for that enum value.  But if you want to just tweak the
> code yourself, that's the file to modify.
> 
> As far as I know there was never a --profile option, but you're
> welcome to file an enhancement bug to add one.
> 
> Note that this is all much easier on Linux where we follow the XDG standard.
> 
> Also note...for you, it might just be easier to enable the
> NoteDirectoryWatcher and sync via dropbox by sharing the actual notes
> directory. This works fine in Tomboy 1.0 and later.
> 
> Hope this helps,
> Sandy
> 
> On Thu, Dec 3, 2009 at 10:31 AM, Richard Lee
> <ricardohenrylee at hotmail.com> wrote:
> > Hi Tomboys,
> >
> > I've been using Tomboy on WinXP for about half a year now. I've just come
> > across syncing using Dropbox after messing about with stunnel+webdav.
> >
> > I use Tomboy to organise my life, which is split into two, work and
> > personal/home. So far I can have Tomboy run from different notes
> > directories, by using --notes-path or setting the TOMBOY_PATH environment
> > variable.
> >
> > This seperates my notes fine. The problem is that I cannot set the Tomboy
> > path (is this TOMBOY_WRAPPER_PATH?) itself which contains the config
> > directory. The reason why I need seperate tomboy/config directories is that
> > I need to two different sync locations, one for work, one for home.
> > Currently they sync into each other, so when I sync my notes I get my notes
> > from home and work synced into one.
> >
> > I've had a look at the code myself, but I've only managed to change the
> > notes-path so far not the whole tomboy directory. There used to be a
> > --profile option, but it doesn't seem to be in the code anymore. Does
> > anybody know how to change tho whole tomboy directory?
> >
> > Cheers,
> >
> > Rich
> > _______________________________________________
> > Tomboy-list mailing list
> > Tomboy-list at lists.beatniksoftware.com
> > http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
> >
> >
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.beatniksoftware.com/pipermail/tomboy-list-beatniksoftware.com/attachments/20091204/0d82dac0/attachment.htm>


More information about the Tomboy-list mailing list