Transfer of .gnucash folder from SSD system disc to HDD data disc

Geert Janssens geert.gnucash at kobaltwit.be
Mon Mar 30 08:57:26 EDT 2015


On Sunday 29 March 2015 21:50:58 Mike or Penny Novack wrote:
> OK, back to the present (say Windows 7 or before, those I do know for
> sure). When user JohnDoe opens gnucash the program looks for a
> directory .../Users/JohnDoe/.gnucash      If it finds it, knows that
> it has been up before and simply uses the configuration data there.
> But for every user on the computer, there is a first time gnucash is
> opened. So it doesn't find a .gnucash in /Users/Username and creates
> one, initializes configuration data, and proceeds.
> 
> Understand what I am saying now? If Windows 8.1 does allow relocating
> /Users onto a different drive (than the C drive) then gnucash can't
> assume the location will be C:/Users/Username

That's correct. And I can happily add that GnuCash will look for the 
user profiles where the OS tells it to expect them. There is nothing 
hard-coded in gnucash to assume this to be in C:\Users

If you configure Windows 8.1 such that the user profiles are in D:
\Users, gnucash will happily look there instead.

It's important though that this gets configured correctly on the OS 
level, using the standard OS way of doing this.

Now one final bit of information: if for some reason you can't or don't 
want to change this on the OS level, you can tell gnucash ONLY to look 
for all its relevant configuration data in another spot.

For this you have to add
HOME=<new location>
to
C:\Program Files(x86)\gnucash\etc\gnucash\environment

Caveat 1: the these paths are parsed and "\" has a special meaning, so 
you best replace backslashes with forward slashes.
In Russellji's example you can add:
HOME=D:/Users/Russellji

Caveat 2: the environment file gets overwritten each time you 
update/reinstall gnucash. So you have to remember to add this line again 
after you update or reinstall gnucash.

Regards,

Geert 


More information about the gnucash-user mailing list