This has nothing to do with Fedora vs Debian but whether an xsettings daemon is installed. I don’t have a full Fedora or Debian template installed currently – so I can’t easily check, but if memory serves me right they have xsettingsd installed by default. In that case you can either uninstall said daemon and use the file based approach or you have to use gnome-tweaks.
The way I usually check for a settings daemon is ps aux | grep settings.
Just tried to install gnome-tweaks in VM, change the theme and it look like the configs persist somewhere while gnome-tweaks and all dependencies gone after reboot of VM. I think using minimal template will be my next step. Now I just transitioned from debian into fedora for sys vms.
I just installed gnome tweaks in the VM set theme to dark (default dark adwaita since I’m not installing anything in the template). Reboot VM and have all apps apart from QT dark, and no tweaks and it’s dependencies installed. For minimal just use ~/.config/gtk-3.0/settings.ini and ~/.gtkrc-2.0 and it also work.
How do you guys deal with the blinding white flash that various programs produce when creating new windows or tabs? Some examples of when this sometimes happens:
Starting Firefox, Thunderbird, or Chrom[e|ium]
Opening a new tab in Firefox or Chrom[e|ium]
Loading new pages and refreshing the current page in Firefox and Chrom[e|ium]
Opening a new reply window in Thunderbird.
Some of these still happen even when using every possible dark mode option + Dark Reader + Dark New Tab (though these do help somewhat). From what I can tell, this has been an unsolved problem as far back as 15+ years now. Every few years, I’m tempted to try implementing a global dark theme again only to run into this problem again. At least if I use the default global light themes everywhere, I don’t get blinded by these inevitable white flashes. I’d guess that trying to use dark themes and getting occasionally blinded is worse for one’s eyes than just consistently using light themes with low blue light. It’s also a lot less of a hassle, since trying to use global dark themes feels like playing whack-a-mole as it seems like there’s always some new thing cropping up that doesn’t automatically follow the global theme and doesn’t come with its own dark theme option.
Strange, this doesn’t seem to change anything for me in Debian 11 minimal. I was able to follow all other steps, so everything in the VM is correctly dark themed except for LibreOffice. I wonder if any of these might explain my lack of expected results:
I used --no-install-recommends when installing libreoffice-kf5
I don’t have the entire libreoffice base installed, just libreoffice-calc and libreoffice-writer
Another tip I came across: With a dark theme in LibreOffice, some of the toolbar icons become illegible, but installing libreoffice-style-breeze fixes this by replacing the icons with nicer ones that work well with the dark theme.
Sorry, not have any wiser answer then “it works for me”. But… I just use gtk-application-prefer-dark-theme=1 and nothing else for minimals since I just want them to be dark, without installing anything unnecessary in them.