Bug 469121

Summary: Changing global theme can ovrewrite gtkrc2.0 file content
Product: [Applications] systemsettings Reporter: medin <med.medin.2014>
Component: kcm_styleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: carlon.luca, mail, nate
Priority: NOR    
Version First Reported In: 5.27.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Changing desktop theme resets gtkrc2.0 file content

Description medin 2023-04-28 22:18:02 UTC
Some old and mature GTK2 apps are still used by users, and they are not maintained, so the probability of them being ported to GTK3 or 4 is near zero. And since Plasma desktop deprecated the support of GTK2, normally it should not interfere with any GTK2 config files, but the reality is that upon any change of Plasma desktop theme the content of the file "~/.config/gtkrc-2.0" is reset which force all GTK2 apps to always use Light theme even if the user already configured them manually to use dark theme.
Comment 1 Nate Graham 2023-05-02 15:53:52 UTC
When you say "Plasma desktop theme" do you mean "Global theme"? Because to my knowledge there is no code capable of changing GTK stuff when you change the Plasma theme.
Comment 2 medin 2023-05-02 18:28:24 UTC
(In reply to Nate Graham from comment #1)
> When you say "Plasma desktop theme" do you mean "Global theme"? Because to
> my knowledge there is no code capable of changing GTK stuff when you change
> the Plasma theme.

It happens when I change the global theme like shown in the attached video.
Comment 3 medin 2023-05-02 18:29:02 UTC
Created attachment 158632 [details]
Changing desktop theme resets gtkrc2.0 file content