gnu: icedove: Automatically load system-provided extensions.

* gnu/packages/gnuzilla.scm
(icedove-source): Set the extensions.autoDisableScopes preference value to 3.
(icedove-minimal) [phases]: Add the --allow-addon-sideload and
--with-unsigned-addon-scopes=app,system ac options to the configure phase.
This commit is contained in:
Maxim Cournoyer 2023-02-13 10:20:12 -05:00
parent efd9f326ae
commit 6375e2e39c
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1273,7 +1273,15 @@ (define icedove-source
(("(pref\\(\"extensions.systemAddon.update.enabled\").*" _ m)
(string-append m ", false);"))
(("(pref\\(\"lightweightThemes.update.enabled\").*" _ m)
(string-append m ", false);")))
(string-append m ", false);"))
;; XXX: The autoDisableScopes is tweaked by the makeicecat
;; script, but it doesn't know about Thunderbird. This is
;; necessary to allow picking up the extensions found in the
;; system global application directory, such as the language
;; packs.
(("\"extensions.autoDisableScopes\", 15")
"\"extensions.autoDisableScopes\", 3"))
;; Step out of the directory and create the tarball.
(chdir "..")
@ -1386,6 +1394,8 @@ (define-public icedove
(lambda ()
(display
(string-append
"ac_add_options --allow-addon-sideload\n"
"ac_add_options --with-unsigned-addon-scopes=app,system\n"
"ac_add_options --disable-crashreporter\n"
"ac_add_options --disable-debug\n"
"ac_add_options --disable-debug-symbols\n"