How to Use GnuCash on Multiple Computers: Unterschied zwischen den Versionen
Matt (Diskussion | Beiträge) K Matt verschob die Seite How to Make GnuCash Configuration Portable nach How to Use GnuCash on Multiple Computers, ohne dabei eine Weiterleitung anzulegen |
Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
This article describes how to | This article describes how to move the GnuCash configuration files, which hold for example the currently open tabs and saved report configurations, to a cloud storage. This enables using GnuCash 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. | 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 | This does not really constitute a multi user environment. For this a database server should be considered for the GnuCash account and transactional data. | ||
== Configuration Locations == | == Configuration Locations == | ||
Zeile 34: | Zeile 34: | ||
Check contents of <code>GNC_USERDATA_DIR</code>. It should display the path specified in the <code>environment.local</code> as described above. | Check contents of <code>GNC_USERDATA_DIR</code>. It should display the path specified in the <code>environment.local</code> as described above. | ||
== Data Files == | |||
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. | |||
[[Kategorie:GnuCash]] | [[Kategorie:GnuCash]] | ||
[[Kategorie:Windows]] | [[Kategorie:Windows]] | ||
[[Kategorie:Fedora]] | [[Kategorie:Fedora]] |
Version vom 18. Juni 2025, 09:46 Uhr
This article describes how to move the GnuCash configuration files, which hold for example the currently open tabs and saved report configurations, to a cloud storage. This enables using GnuCash 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 does not really constitute a multi user environment. For this a database server should be considered for the GnuCash account and transactional data.
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.
Data Files
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.