From: Mark H Weaver <mhw@netris.org>
To: Marius Bakke <mbakke@fastmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Packaging IceCat extensions with Guix
Date: Thu, 12 Jan 2017 21:18:02 -0500 [thread overview]
Message-ID: <87h953aejp.fsf@netris.org> (raw)
In-Reply-To: <87o9zbafux.fsf@netris.org>
I wrote:
> Marius Bakke <mbakke@fastmail.com> writes:
>
>> I read somewhere that Debian packages certain Firefox extensions. I
>> tried doing the same with Guix, but haven't been able to get IceCat to
>> load extensions from a directory.
>>
>> The attached (outdated!) patch adds the "uBlock" XPI to
>> <guix-profile>/lib/icecat/extensions. I've tried symlinking this to
>> "standard" system folders (from IceCat source code), and disabled
>> unsigned extensions, but no luck so far. Maybe someone more familiar
>> with IceCat internals can try it?
>
> The relevant code is in toolkit/xre/nsXREDirProvider.cpp. It looks to
> me like the functions to patch are GetSystemExtensionsDirectory and
> AppendSysUserExtensionPath.
>
> In GetSystemExtensionsDirectory, I guess the strings
> "/usr/lib/mozilla/extensions" and "/usr/lib64/mozilla/extensions" should
> both be changed to "/run/current-system/profile/lib/mozilla/extensions".
Also, in GetFile, "/usr/share/mozilla/extensions" should be changed to
"/run/current-system/profile/share/mozilla/extensions".
Here's another file that needs patching:
xpcom/io/nsAppFileLocationProvider.cpp
In nsAppFileLocationProvider::GetFile, "/usr/lib/mozilla/plugins" and
"/usr/lib64/mozilla/plugins" should be changed to
"/run/current-system/profile/lib/mozilla/plugins". Note that the
MOZ_PLUGIN_PATH environment variable is consulted here.
Here are a couple of other files that might be relevant:
toolkit/mozapps/extensions/AddonManager.jsm
toolkit/mozapps/extensions/internal/XPIProvider.jsm
Mark
next prev parent reply other threads:[~2017-01-13 2:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 19:12 Packaging IceCat extensions with Guix Marius Bakke
2017-01-12 22:49 ` ng0
2017-01-13 1:26 ` Adonay Felipe Nogueira
2017-01-13 4:11 ` Mike Gerwitz
2017-01-13 9:49 ` ng0
2017-06-08 18:46 ` ng0
2017-07-02 20:28 ` ng0
2017-01-13 1:49 ` Mark H Weaver
2017-01-13 2:18 ` Mark H Weaver [this message]
2017-01-14 17:46 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h953aejp.fsf@netris.org \
--to=mhw@netris.org \
--cc=guix-devel@gnu.org \
--cc=mbakke@fastmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).