You are here

[Fixed] GnuCashPortable where to place settings for GTK 3.0

5 posts / 0 new
Last post
gohhwaian
Offline
Last seen: 5 months 1 week ago
Joined: 2018-10-16 04:01
[Fixed] GnuCashPortable where to place settings for GTK 3.0

Hello Gurus,

I am trying to set a dark theme for GnuCashPortable. Acccording to https://wiki.gnucash.org/wiki/GTK3#Dark_Themes, I could place the following:

[Settings]
gtk-application-prefer-dark-theme=true

in a settings.ini file in GTK_CONFIG_HOME.

I have tried putting the settings.ini file in Data/GTKDataHome, App/DefaultData/GTKDataHome but to no avail.

The only way that the dark theme could work is by editing the settings.ini file which already existed at App\Gnucash\etc\gtk-3.0\. But I am afraid that subsequent updates would erase away the dark theme setting.

I would prefer to put the file in a user area so that the next update would not remove the modification.

Much appreciate any advice where I should put the settings.ini file to set the dark theme for the app.

Thank you very much for your time.

Hwai An

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 1 month 2 weeks ago
DeveloperModerator
Joined: 2008-07-24 18:46
Not Set

Currently, GnuCash Portable does not set either GTK_CONFIG_HOME or $XDG_CONFIG_HOME.
According to the GnuCash wiki, the default location for that file is in %LOCALAPPDATA%\gtk-3.0.

gohhwaian
Offline
Last seen: 5 months 1 week ago
Joined: 2018-10-16 04:01
Thank you very much Gord for

Thank you very much Gord for your reply.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 2 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in GnuCash Portable 3.5-1

As of the current release, both new and upgraded users will have default files within GnuCashPortable\Data\GTKDataHome that can be edited. GTK_CONFIG_HOME env var is set to this location which should work.

Sometimes, the impossible can become possible, if you're awesome!

mabrownmab
Offline
Last seen: 1 year 1 month ago
Joined: 2011-12-23 07:17
An update that I've observed

An update that I've observed here. V 4.13.
I had to put add the gtk-application-prefer-dark-theme=true line into GnuCashPortable\App\Gnucash\etc\gtk-3.0\settings.ini

I suspect that might get overwritten, but putting this note in here for others.

Log in or register to post comments