1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| | diff -Naur gtk+-2.24.28/gtk/gtkrc.c gtk+-2.24.28.new/gtk/gtkrc.c
--- gtk+-2.24.28/gtk/gtkrc.c 1970-01-01 10:00:00.000000000 +1000
+++ gtk+-2.24.28.new/gtk/gtkrc.c 2016-03-11 17:25:19.549137754 +1100
@@ -829,6 +829,29 @@
}
}
+ if (!path && home_dir)
+ {
+ path = g_build_filename (home_dir, ".guix-profile",
+ "share", "themes", subpath, NULL);
+ if (!g_file_test (path, G_FILE_TEST_EXISTS))
+ {
+ g_free (path);
+ path = NULL;
+ }
+ }
+
+ if (!path)
+ {
+ const gchar *theme_dir = "/run/current-system/profile/share/themes";
+ path = g_build_filename (theme_dir, name, subpath, NULL);
+
+ if (!g_file_test (path, G_FILE_TEST_EXISTS))
+ {
+ g_free (path);
+ path = NULL;
+ }
+ }
+
if (!path)
{
gchar *theme_dir = gtk_rc_get_theme_dir ();
|