2025-07-13 GnuCash IRC logs
01:13:00 *** fell has quit IRC
01:14:19 *** fell has joined #gnucash
01:14:19 *** ChanServ sets mode: +o fell
05:18:18 *** Cork has quit IRC
05:23:19 *** Cork has joined #gnucash
11:39:51 *** gjanssens has joined #gnucash
11:39:51 *** ChanServ sets mode: +o gjanssens
11:40:41 <gjanssens> .
11:40:41 <gncbot> gjanssens: Sent 27 weeks, 2 days, 16 hours, and 41 minutes ago: <warlord> hey geert -- any idea how I could set custom.sh to remote-rsync the flatpak builds? I want the results to remain on code.gnucash.org, even if the /build/ is done on another system.
11:43:36 <gjanssens> warlord: I assume you mean the builds will no longer be done on code ? You can then set the host and host_public variables
11:44:53 <gjanssens> warlord: host should be an ssh compatible user-server-path spec to which you can rsync (public key authentication should be in place to avoid password requests during the automated build)
11:45:51 <gjanssens> warlord: example - code-user@code.gnucash.org:/path/to/upload/the/build/results/to
11:46:40 <gjanssens> warlord: host_public on the other hand is the public access, used to properly configure the flatpakref files
11:47:08 <gjanssens> warlord: normally this should not be changed if you don't want to change where users can download the flatpaks from
11:48:03 <gjanssens> jralls: I'm cleaning up old mails and I found one from December 2024 where you change the Gtk3 wiki page to mention two possible paths for css files.
11:48:21 <gjanssens> jralls: you mark one as preferred and one as deprecated by gtk
11:49:13 <gjanssens> jralls: I'm a bit confused by the latter. It's a path we have defined in the gnucash code, so I don't know what Gtk has to say about this.
11:50:20 <gjanssens> jralls: the reason we added this is because on linux $HOME/.config/gtk-3.0.gtk.css affects all Gtk3 applications on the system. So if you make changes in there to tweak gnucash' css, this may have unwanted effects on other gtk3 applications
11:52:12 <gjanssens> jralls: This is also true on Windows systems. On macOS you have chosen to avoid this by encapsulating Gtk3's config directory somewhere inside the gnucash config directory.
11:53:17 <gjanssens> jralls: So it's not really something deprecated by Gtk but a gnucash specific extension.
11:53:45 <gjanssens> jralls: calling it 'deprecated' discourages the use of this file. Is that what we really want ?
11:54:44 <gjanssens> jralls: If so, what do you propose to avoid unwanted side effects on other gtk3 apps from changing gtk.css on Windows and Linux ?
11:55:12 <gjanssens> jralls: Perhaps Gtk does offer something to that effect, but I don't know of a mechanism other than what we implemented so far...
14:00:21 *** tmrsm has quit IRC
14:00:31 *** tmrsm has joined #gnucash
15:17:35 <jralls> gjanssens, Yes, I can explain that better. What's deprecated is GTK_CONFIG_HOME/gtk-3.0.css (and the very old $HOME/.gtk.css). On macOS if built with MAC_INTEGRATION we set XDG_CONFIG_HOME to $HOME/Library/Application Support/Gnucash/config. That gets gtk to load gtk-3.0/gtk.css instead of the probably non-existant $HOME/.config/gtk-3.0/gtk.css.
15:20:29 <gjanssens> jralls: from my testing with strace GTK_CONFIG_HOME/gtk-3.0.css is not searched for by gtk. I actually think it never was. I did some spelunking and found that sunfish added this to our Configuration locations page while cleaning up the FAQ.
15:21:14 <gjanssens> jralls: He misread though: the faq originally never mentioned GTK_CONFIG_HOME/gtk-3.0.cs, it mentioned GNC_CONFIG_HOME/gtk-3.0.css
15:22:32 <gjanssens> jralls: I understand the changes you made for macOS with MAC_INTEGRATION and agree to those.
15:24:31 <gjanssens> Translating these paths, we're talking about $HOME/Library/Application Support/Gnucash/config/gtk-3.0/gtk.css (equivalent of GTK_CONFIG_HOME/gtk.css, the file gtk3 itself will load), $HOME/Library/Application Support/Gnucash/config/gtk-3.0.css (the file gnucash additionally will look for) and $HOME/Library/Application Support/Gnucash/config/gtk-3.0/gtk-3.0.css (the file dreamed up by sunfish)
15:25:45 <gjanssens> The second one in that list is what's referred to by GNC_CONFIG_HOME/gtk-3.0.css and is what our GTK3 wiki page suggests is deprecated by gtk.
15:26:48 <gjanssens> Based on what you just replied to me, I think that's wrong.
15:26:59 <jralls> It would be a bit late to complain about XDG_CONFIG_HOME since I added it 8 years ago! ;-)
15:27:31 <gjanssens> Of course ;)
15:28:23 <gjanssens> I was only triggered by the mention of deprecation. Do you see what I mean wrt to the 3 file locations ?
15:30:58 <gjanssens> BIAB
15:35:21 <gjanssens> (Didn't leave yet ;)
15:36:23 <gjanssens> I'll change the page if you agree to annotate the first option as affecting all gtk based applications and the second one only affecting gnucash.
15:36:28 <gjanssens> Really BIAB now...
15:39:04 <jralls> So GNC_CONFIG_HOME is (unless set as an environment variable) is defined programmatically as g_get_user_config_dir()/gnucash, so on macOS that would be $HOME/Library/Application Support/Gnucash/config/gnucash/ so that's where gnc_add_css_file will look for gtk-3.0.css.
15:42:15 <jralls> There is no GTK_CONFIG_HOME or GTK_DATA_HOME in the gtk code any more, they just use the XDG variables. But they also look for it in several other directories: https://gitlab.gnome.org/GNOME/gtk/-/blame/gtk-3-24/gtk/gtkcssprovider.c?ref_type=heads#L64
15:42:46 <jralls> Now my turn for BIAB...
15:48:43 <jralls> Back.
15:53:45 <jralls> gjanssens, There are too many refrences on that page to the css file and the one with the note about multiple locations is in only one, about typefaces. I propose to add a section at the top of the page named "The CSS File" with a full discussion and change the rest to [[#The CSS File|the css file]]
16:17:40 <jralls> warlord, a few years ago you asked me about a Spice remote desktop app for macOS. I finally found one: aSpice, https://github.com/iiordanov/remote-desktop-clients, $14 on the App Store.
16:23:25 <gjanssens> Back.
16:24:37 <gjanssens> jralls: ok. I don't remember if gtk ever really used GTK_CONFIG_HOME or GTK_DATA_HOME. In the gnucash context I have defined them to make a clear distinction between the gnucash specific or gtk specific locations.
16:25:15 <gjanssens> To your point, I like your idea of a css file section and referrin to it from other sections on the page.
16:25:40 <gjanssens> To implement in my next window of opportunity :)
16:26:00 <jralls> I was going to write it now.
16:26:26 <jralls> But I'll leave it to you if you'd rather.
16:27:14 <gjanssens> No, if you want to pick it up, even better! Please do
17:30:23 *** gjanssens has quit IRC
22:05:27 <warlord> jralls, does it work against oVirt?
23:10:01 *** jonakeys has quit IRC
23:10:08 *** jonakeys has joined #gnucash