You are not logged in.

#1 2015-05-22 19:12:38

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

[SOLVED] Moving GTK2 configuration to XDG_CONFIG_HOME.

I'm quite pedantic about the layout of my home folder.

To that end I prefer to use applications that either place their configuration files in ~/.config by default or can be persuaded to put them there (take a look at the dotfiles link in my signature to see what I mean).

One application that doesn't do this that can't be replaced by an alternative is GTK2 and its ~/.gtkrc-2.0 file, so my question is this...

Would I have to recompile GTK2 to alter this behaviour and how much of a hassle would this be (ie is gtk2 a large package that would take hours to re-compile every update), or is there an easier solution?

Any pointers on where to start would be appreciated.

Last edited by Slithery (2015-05-22 23:07:48)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#2 2015-05-22 22:26:55

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Moving GTK2 configuration to XDG_CONFIG_HOME.

I had to set $GTK2_RC_FILES to get Qt(4?) to recognize my GTK theme. I haven't tried it with a non-standard location, but maybe that also works for GTK apps?

Offline

#3 2015-05-22 23:06:47

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Moving GTK2 configuration to XDG_CONFIG_HOME.

Cheers Raynman, you've just made my OCD side a lot happier.

Adding the following to my xinitrc did the trick...

export GTK2_RC_FILES=~/.config/gtk-2.0/gtkrc-2.0

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB