GNOME Bugzilla – Bug 107856
hard-coded /usr/share
Last modified: 2004-12-22 21:47:04 UTC
The theme manager seems to be hard-coded to look in /usr/share, which kinda sucks when your distro mandates you install in /opt/gnome or whatnot. Even patching the source to look in /opt/gnome sucks, tho, when you *also* have themes in /usr/share/themes and /usr/local/themes and /opt/kde/share/themes, etc. - should there perhaps be some way of configuring (either at build or runtime) multiple paths to look in for themes, versus just the install path? (or hard-coded paths)
The theme dir is not hardcoded, the code calls gtk_rc_get_theme_dir () to get the system theme dir. It also checks ~/.themes for any themes. The only hardcoded URI is /usr/share/icons, but after that it also checks INSTALL_PREFIX/share/icons and ~/.icons for icons. The code is in gnome-theme-info.c in the gnome_theme_init() function if you are interested.