[GNC] Correct environment variables for Linux?
Dan Ståhlberg
dstahlberg at protonmail.com
Fri Jan 1 06:04:12 EST 2021
My New Years resolution was to finally create a better backup strategy for my GnuCash files. In order to achieve this, the GnuCash files and directories need to be on another disk and GnuCash environment variables need to point to this directory.
Following recommendations on the Wiki I have made a Linux bash shell startscript for GnuCash. But GnuCash seems to start up fresh everytime, with initial opening questions and suggestions and no recent files??? I am using Ubuntu 20.04, bash and GnuCash "3.8b+".
Can anyone help me to see if the environment variables are set correctly?
Thanks in advance and Happy New Year to all!
Dan
startup script file (Bash shell):
#!/bin/bash
#
# Setup GnuCash environment and start GnuCash with Swedish sort order but English menus
# https://wiki.gnucash.org/wiki/Configuration_Locations
# https://wiki.gnucash.org/wiki/Directories
#
# 2021-01-01 Dan Ståhlberg
TOP=/bigd/workarea/ekonomi/gnucash/2021
export HOME=$TOP
export XDG_DATA_HOME=$TOP/.local/share
export XDG_CONFIG_HOME=$TOP/.config
LC_COLLATE=sv_SE.UTF-8 gnucash
More information about the gnucash-user
mailing list