all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob b3a5030004d91e7ea2956da6174c1bfb5158bcbe 844 bytes (raw)
name: gnu/packages/patches/gtk2-theme-paths.patch 	 # note: path name is non-authoritative(*)

 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 ();

debug log:

solving b3a5030 ...
found b3a5030 in https://yhetil.org/guix/56e38fc2.2457c20a.5af9a.ffffbcb1@mx.google.com/

applying [1/1] https://yhetil.org/guix/56e38fc2.2457c20a.5af9a.ffffbcb1@mx.google.com/
diff --git a/gnu/packages/patches/gtk2-theme-paths.patch b/gnu/packages/patches/gtk2-theme-paths.patch
new file mode 100644
index 0000000..b3a5030

1:11: space before tab in indent.
 	}
1:13: trailing whitespace.
 
1:29: trailing whitespace.
+      
Checking patch gnu/packages/patches/gtk2-theme-paths.patch...
Applied patch gnu/packages/patches/gtk2-theme-paths.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 b3a5030004d91e7ea2956da6174c1bfb5158bcbe	gnu/packages/patches/gtk2-theme-paths.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.