unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 0d90ea98b68534423d11149c0c4049fe04aacacf 1165 bytes (raw)
name: gnu/packages/patches/icecat-use-guix-extensions.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
 
--- a/toolkit/xre/nsXREDirProvider.cpp
+++ b/toolkit/xre/nsXREDirProvider.cpp
@@ -415,13 +415,20 @@ nsXREDirProvider::GetFile(const char* aProperty, bool* aPersistent,
 #if defined(XP_UNIX) && !defined(XP_MACOSX)
   else if (!strcmp(aProperty, XRE_SYS_SHARE_EXTENSION_PARENT_DIR)) {
 #  ifdef ENABLE_SYSTEM_EXTENSION_DIRS
-#    if defined(__OpenBSD__) || defined(__FreeBSD__)
-    static const char* const sysLExtDir = "/usr/local/share/mozilla/extensions";
-#    else
-    static const char* const sysLExtDir = "/usr/share/mozilla/extensions";
-#    endif
-    rv = NS_NewNativeLocalFile(nsDependentCString(sysLExtDir), false,
-                               getter_AddRefs(file));
+    rv = GetUserDataDirectoryHome(getter_AddRefs(file), false);
+    NS_ENSURE_SUCCESS(rv, rv);
+
+    rv = file->AppendNative(".guix-profile"_ns);
+    NS_ENSURE_SUCCESS(rv, rv);
+
+    rv = file->AppendNative("share"_ns);
+    NS_ENSURE_SUCCESS(rv, rv);
+
+    rv = file->AppendNative("icecat"_ns);
+    NS_ENSURE_SUCCESS(rv, rv);
+
+    rv = file->AppendNative("extensions"_ns);
+    NS_ENSURE_SUCCESS(rv, rv);
 #  endif
   }
 #endif  // defined(XP_UNIX) && !defined(XP_MACOSX)

debug log:

solving 0d90ea98b685 ...
found 0d90ea98b685 in https://yhetil.org/guix-patches/097bac7dab0336257dca5e9456810f883961e084.1696806437.git.clement@lassieur.org/ ||
	https://yhetil.org/guix-patches/f497f0a1831906861201bb4cc799b6b70cd83049.1696782417.git.clement@lassieur.org/

applying [1/1] https://yhetil.org/guix-patches/097bac7dab0336257dca5e9456810f883961e084.1696806437.git.clement@lassieur.org/
diff --git a/gnu/packages/patches/icecat-use-guix-extensions.patch b/gnu/packages/patches/icecat-use-guix-extensions.patch
new file mode 100644
index 000000000000..0d90ea98b685

Checking patch gnu/packages/patches/icecat-use-guix-extensions.patch...
Applied patch gnu/packages/patches/icecat-use-guix-extensions.patch cleanly.

skipping https://yhetil.org/guix-patches/f497f0a1831906861201bb4cc799b6b70cd83049.1696782417.git.clement@lassieur.org/ for 0d90ea98b685
index at:
100644 0d90ea98b68534423d11149c0c4049fe04aacacf	gnu/packages/patches/icecat-use-guix-extensions.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).