How to Use GnuCash on Multiple Computers: Unterschied zwischen den Versionen

Aus MattWiki
Zeile 2: Zeile 2:


For this a cloud or network file storage is needed. I am working with Nextcloud as a cloud file storage, but I guess this should work similarly with other cloud file storages like Dropbox.
For this a cloud or network file storage is needed. I am working with Nextcloud as a cloud file storage, but I guess this should work similarly with other cloud file storages like Dropbox.
This should not be confused with the GnuCash data file which holds the accounts and transactional data. But the configuration files hold also the location of the recently used GnuCash data files, so the GnuCash data file can also be saved in the same cloud or network file store which makes the whole configuration usable on multiple computers.


== Configuration Locations ==
== Configuration Locations ==
Zeile 10: Zeile 12:
== Windows Setup ==
== Windows Setup ==


Create a file <code>environment.local</code> and place it <code>%PROGRAMFILES(X86)%\gnucash\etc\gnucash</code>:
Create a file <code>environment.local</code> and place it <code>%PROGRAMFILES(X86)%\gnucash\etc\gnucash</code>
 
[Variables]
GNC_DATA_HOME=%HOMEDRIVE%%HOMEPATH%/Nextcloud/GnuCash
 


Content:
[Variables]
GNC_DATA_HOME=%HOMEDRIVE%%HOMEPATH%/Nextcloud/GnuCash-config
For directories GnuCash on Windows considers "\" to be the same as "/"
For directories GnuCash on Windows considers "\" to be the same as "/"


Zeile 21: Zeile 22:


== Linux Setup on Fedora ==
== Linux Setup on Fedora ==
Create a file <code>environment.local</code> and place it <code>/etc/gnucash</code>
Content:
[Variables]
GNC_DATA_HOME={HOME}/Nextcloud/GnuCash-config
== Verify Configuration ==
Open GnuCash
Go to Help →About
Check contents of <code>GNC_USERDATA_DIR</code>. It should display the path specified in the <code>environment.local</code> as described above.
[[Kategorie:GnuCash]]
[[Kategorie:GnuCash]]
[[Kategorie:Windows]]
[[Kategorie:Windows]]
[[Kategorie:Fedora]]
[[Kategorie:Fedora]]
__INHALTSVERZEICHNIS_ERZWINGEN__

Version vom 18. Juni 2025, 09:41 Uhr

This article describes how to make the GnuCash configuration files, which hold for example the currently open tabs and saved report configurations portable in the sense that GnuCash can be used on multiple computers or laptops, like two Windows computers or even a Windows computer and a Linux computer and look the same on both of them.

For this a cloud or network file storage is needed. I am working with Nextcloud as a cloud file storage, but I guess this should work similarly with other cloud file storages like Dropbox.

This should not be confused with the GnuCash data file which holds the accounts and transactional data. But the configuration files hold also the location of the recently used GnuCash data files, so the GnuCash data file can also be saved in the same cloud or network file store which makes the whole configuration usable on multiple computers.

Configuration Locations

GnuCash has a couple of parameters for the different location settings, which are described here: https://wiki.gnucash.org/wiki/Configuration_Locations

User specific GnuCash configuration data is saved in a directory which is held by the variable GNC_DATA_HOME

Windows Setup

Create a file environment.local and place it %PROGRAMFILES(X86)%\gnucash\etc\gnucash

Content:

[Variables]
GNC_DATA_HOME=%HOMEDRIVE%%HOMEPATH%/Nextcloud/GnuCash-config

For directories GnuCash on Windows considers "\" to be the same as "/"

But: As "\" is also an escape character you need to use another "\" in front of it, when using "\", therefore "/" is the same as "\\" on Windows

Linux Setup on Fedora

Create a file environment.local and place it /etc/gnucash

Content:

[Variables]
GNC_DATA_HOME={HOME}/Nextcloud/GnuCash-config

Verify Configuration

Open GnuCash

Go to Help →About

Check contents of GNC_USERDATA_DIR. It should display the path specified in the environment.local as described above.