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 20:49:42 -0500 [thread overview]
Message-ID: <87o9zbafux.fsf@netris.org> (raw)
In-Reply-To: <87ziiw5bzt.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (Marius Bakke's message of "Thu, 12 Jan 2017 20:12:06 +0100")
Hi Marius,
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".
In AppendSysUserExtensionPath, instead of appending ".mozilla" and
"extensions" components to the file name, we should append
".guix-profile", "lib", "mozilla", and "extensions".
Would you like to work on it?
As a temporary hack, icecat is currently looking in
~/.mozilla/extensions, so you could make that a symlink pointing to the
appropriate place.
> I would love to have my favourite extensions managed by Guix!
I agree, wholeheartedly :)
> + (replace 'install
> + (lambda* (#:key outputs #:allow-other-keys)
> + (let* ((out (assoc-ref outputs "out"))
> + (extdir (string-append
> + out "/lib/icecat/extensions")))
s/icecat/mozilla/
Thanks very much for taking this on!
Mark
next prev parent reply other threads:[~2017-01-13 1:50 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 [this message]
2017-01-13 2:18 ` Mark H Weaver
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=87o9zbafux.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).