Respect GTK2_RC_FILES environmental variable
ClosedPublic

Authored by gikari on Jan 2 2020, 8:04 PM.

Details

Summary

If the above variable is set and it does not contain multiple paths,
write GTK2 config into the designated config file, instead of the
default one.

BUG: 415770
FIXED-IN: 5.18.0

Test Plan

Check if the custom file provided by env variable is modified, when changing any settings, that are synchronized by kded module (icon theme, cursor theme etc)
Simple test:

  1. mv ~/.gtkrc-2.0 ~/.gtkrc-2.0.bak
  2. export GTK2_RC_FILES=~/.gtkrc-2.0.bak
  3. Restart kded5 with the above env variable
  4. Change e.g. icon theme and see, that .gtkrc-2.0.bak is modified, but .gtkrc-2.0

Diff Detail

Repository
R99 KDE Gtk Configuration Tool
Branch
show-some-respect-to-gtk2-env-variable (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 20558
Build 20576: arc lint + arc unit
gikari created this revision.Jan 2 2020, 8:04 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 2 2020, 8:04 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
gikari requested review of this revision.Jan 2 2020, 8:04 PM
ngraham accepted this revision.Jan 2 2020, 8:15 PM
This revision is now accepted and ready to land.Jan 2 2020, 8:15 PM
This revision was automatically updated to reflect the committed changes.