External Publication
Visit Post

Other/future projects • Re: GTK2 revival

Pale Moon forum - Forum index [Unofficial] April 30, 2026
Source

Daemonratte, would it be possible to make it XDG-compliant?

  • ~/.gtkrc-2.0 Currently, GTK2 looks for a file called .gtkrc-2.0 in the user's home directory for its configuration. The only way I know to workaround this right now is defining another path through the environment variable GTK2_RC_FILES in ~/.profile.

The XDG-compliant place to put this file would be XDG_CONFIG_HOME/gtk-2.0/, and its name should probably be gtkrc.

  • ~/.gtk-2.0/ This is the default directory in which GTK2 looks for theme engines and other stuff. You can workaround this by defining another path through the environment variable GTK_PATH (I know this is read by GTK3 too).

I'm not sure, but I think the proper place for this is XDG_DATA_HOME, but I don't know about how to name the directory.

  • ~/.themes/ , ~/.icons/ Currently, GTK2 only looks for widget and icon themes in the .themes/ and .icons/ directories, besides the system-wide ones.

It should look for them in XDG_DATA_HOME/themes/ and XDG_DATA_HOME/icons/ too.

And, of course, it should still look for older paths and files, to ensure backward compatibility.

I think that's it, but I might be wrong somewhere or just missing something.


Discussion in the ATmosphere

Loading comments...