From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Packaging IceCat extensions with Guix Date: Sat, 14 Jan 2017 18:46:37 +0100 Message-ID: <87inphleki.fsf@gnu.org> References: <87o9zbafux.fsf@netris.org> <87ziiw5bzt.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <87h953aejp.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSSPa-0000Pr-V4 for guix-devel@gnu.org; Sat, 14 Jan 2017 12:46:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSSPX-0000Yc-Sq for guix-devel@gnu.org; Sat, 14 Jan 2017 12:46:43 -0500 In-Reply-To: <87h953aejp.fsf@netris.org> (Mark H. Weaver's message of "Thu, 12 Jan 2017 21:18:02 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver skribis: > I wrote: > >> Marius Bakke 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 >>> /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. This sounds like the right approach, and I agree that it=E2=80=99d be nice = if Guix could provide extensions! Ludo=E2=80=99.