Bug 469121 - Changing global theme can ovrewrite gtkrc2.0 file content
Summary: Changing global theme can ovrewrite gtkrc2.0 file content
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (other bugs)
Version First Reported In: 5.27.4
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-28 22:18 UTC by medin
Modified: 2023-05-02 18:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Changing desktop theme resets gtkrc2.0 file content (1.37 MB, video/mp4)
2023-05-02 18:29 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
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