theme-parser: Look for themes in XDG_USER_DATA_DIR, not in ~/.themes
https://bugzilla.gnome.org/show_bug.cgi?id=675316
This commit is contained in:
parent
da65738901
commit
81930ca76e
@ -4285,11 +4285,11 @@ meta_theme_load (const char *theme_name,
|
|||||||
/* We try all supported major versions from current to oldest */
|
/* We try all supported major versions from current to oldest */
|
||||||
for (major_version = THEME_MAJOR_VERSION; (major_version > 0); major_version--)
|
for (major_version = THEME_MAJOR_VERSION; (major_version > 0); major_version--)
|
||||||
{
|
{
|
||||||
/* We try first in home dir, XDG_DATA_DIRS, then system dir for themes */
|
/* We try first in XDG_USER_DATA_DIR, XDG_DATA_DIRS, then system dir for themes */
|
||||||
|
|
||||||
/* Try home dir for themes */
|
/* Try XDG_USER_DATA_DIR first */
|
||||||
theme_dir = g_build_filename (g_get_home_dir (),
|
theme_dir = g_build_filename (g_get_user_data_dir(),
|
||||||
".themes",
|
"themes",
|
||||||
theme_name,
|
theme_name,
|
||||||
THEME_SUBDIR,
|
THEME_SUBDIR,
|
||||||
NULL);
|
NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user