From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Anyone got ideas on how to make Gajim aware of plugins in store? Date: Sat, 12 Aug 2017 13:55:59 +0000 Message-ID: <20170812135559.zxhlql7wco3jtkwv@abyayala> References: <20170612103325.hrb63bpvefdnah3b@abyayala> <874lvjr5bw.fsf@elephly.net> <20170812103011.47hkni2yzs6grlyw@abyayala> <87bmnk3ogu.fsf@fastmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qcwz4y4ws5bywrg6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgWtk-0007EM-OU for guix-devel@gnu.org; Sat, 12 Aug 2017 09:56:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgWth-00076X-Md for guix-devel@gnu.org; Sat, 12 Aug 2017 09:56:16 -0400 Received: from aibo.runbox.com ([91.220.196.211]:59058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgWth-00073E-Fb for guix-devel@gnu.org; Sat, 12 Aug 2017 09:56:13 -0400 Content-Disposition: inline In-Reply-To: <87bmnk3ogu.fsf@fastmail.com> 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: Marius Bakke Cc: guix-devel@gnu.org --qcwz4y4ws5bywrg6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Marius Bakke transcribed 2.7K bytes: > ng0 writes: >=20 > > Ricardo Wurmus transcribed 0.9K bytes: > >>=20 > >> ng0 writes: > >>=20 > >> > Do I use native-search-paths? There is no variable > >> > which is used in Gajim, so I think maybe I need to > >> > include this in the wrapper and add something similar > >> > to the native-search-path which would look in > >> > ~/.guix-profile/share/gajim/plugins/ for $name-of-plugin > >> > to PATH? > >>=20 > >> Gajim assumes that there is a single plugin directory, which has to be > >> set at configuration time. This means that you cannot even default it > >> to ~/.guix-profile/share/gajim/plugins, because people might use > >> different profile directories. > >>=20 > >> The best way to fix this is upstream by sending them a patch that would > >> make Gajim look for plugins in other directories, either by implementi= ng > >> a search path environment variable or by adding a key to the > >> configuration file. > >>=20 > >> --=20 > >> Ricardo > >>=20 > >> GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC > >> https://elephly.net > >>=20 > >>=20 > > > > I've got this reply on my ticket, so maybe I didn't explain my > > problem well enough. > > Does someone have an answer that is easy to understand to pass on > > (or better: sign up and deal with it upstream)? >=20 > [...] >=20 > > Date: Thu, 03 Aug 2017 14:58:07 +0200 > > From: Yann Leboulanger > > To: ng0 > > Subject: Re: gajim | plugins: location: implement either search-path or= option for configuration file (#8682) > > > > Gajim looks in 2 places for plugins: > > - $XDG_DATA_HOME/gajim/plugins > > - GAJIM_INSTALL_PATH/plugins (/usr/share/gajim/plugins for example) > > > > So you can set $XDG_DATA_HOME to something else. Isn't it enough? >=20 > I went ahead and looked at the source: >=20 > https://dev.gajim.org/gajim/gajim/blob/master/gajim/common/configpaths.py= #L67-106 >=20 > It looks like what we want is PLUGINS_BASE to resolve to > "$GAJIM_PLUGIN_PATH/share/gajim/plugins". A more upstream-friendly way > might be to add another gajimpath, say PLUGINS_PATH, and add it here: >=20 > https://dev.gajim.org/gajim/gajim/blob/master/gajim/common/gajim.py#L72 >=20 > Would you like to try it? Thanks! No, I'd rather want someone else to do this because I have too much to do currently. --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://n0is.noblogs.org/my-keys https://www.infotropique.org https://krosos.org --qcwz4y4ws5bywrg6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlmPCO8ACgkQ4i+bv+40 hYj+Sw//R/1z7+ESrG4kwD71EkDKV62wo6Yyw8oWgZbpdXgGs8rF4pXHZSgwyprR INZwoJ9ravbR5AF7dZLAGiNT3hWhP34cQ4Z2aHBN0SD9ophaB/ZVOueO681Tr5hT U7YoYBSqG3df05juG4mLhuCZMknbCDC7Bk+eGHmfYJESi2+AGFMqWt5O7osJs4VH UcqJFOVo9Da3+LrS/5PNbOudvVxVnXqmxv2/HVc0T2v2yK1Lf1vffIp/Xk6Inx5E VbyjSyr8jMPxqAHC8MdJ+rw3H5032nbGXNf1ytzMZZTGDMpvqqHXBqbxY5/q3s8+ U4RoyO2wl399C7yYMNTl9dhG4ny0Pf/vYsClhtUqSuvi6NpdOlxAYmaRNCKnjlxT NyyBvFzXMNAdN9pc0Uh34PhMlIwi2Dpt0R+ZCwjV/A3IJxYHtzXWXG0yezzTVM6f aK7MxKA+GSPA9fxO7sctt6vtZR4UL8BFVU4hN2r9qS8LCj86LD2REVQwQcG/g9cA QMdqf0o4P3sLmjU+W8wsTwUgCJbyxxhm59Pp1/e7W3dkqKgDZ5vWZcvLjqNr7vKL 7JstglTHfqzm+/9jqqYdP0jFP4x7bk7EuOntAwEjVGDVzY8cWV/WF/66Cr+lCttS Kc+zE7WlhB+1PKblbdTCFpJDreNpEOnF/gBA9S5QCmguX9acLBc= =EAl7 -----END PGP SIGNATURE----- --qcwz4y4ws5bywrg6--