From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: Anyone got ideas on how to make Gajim aware of plugins in store? Date: Sat, 12 Aug 2017 15:28:01 +0200 Message-ID: <87bmnk3ogu.fsf@fastmail.com> References: <20170612103325.hrb63bpvefdnah3b@abyayala> <874lvjr5bw.fsf@elephly.net> <20170812103011.47hkni2yzs6grlyw@abyayala> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgWSg-000540-4l for guix-devel@gnu.org; Sat, 12 Aug 2017 09:28:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgWSb-000570-R2 for guix-devel@gnu.org; Sat, 12 Aug 2017 09:28:18 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:46817) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dgWSb-00055g-Dq for guix-devel@gnu.org; Sat, 12 Aug 2017 09:28:13 -0400 In-Reply-To: <20170812103011.47hkni2yzs6grlyw@abyayala> 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: ng0 , Ricardo Wurmus Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable ng0 writes: > 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 implementing >> 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)? [...] > Date: Thu, 03 Aug 2017 14:58:07 +0200 > From: Yann Leboulanger > To: ng0 > Subject: Re: gajim | plugins: location: implement either search-path or o= ption 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? I went ahead and looked at the source: https://dev.gajim.org/gajim/gajim/blob/master/gajim/common/configpaths.py#L= 67-106 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: https://dev.gajim.org/gajim/gajim/blob/master/gajim/common/gajim.py#L72 Would you like to try it? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlmPAmIACgkQoqBt8qM6 VPpenAf/aGOImgE6krBrMODv/NMlpEicPOiXWlVntj6O6q/+HBh+/hmL0fGXRtay fCyCtCVczQjnHk/ZJ1fqA4wncMCWsUK4jFTH28+5lnZ6uNURFPL7Oriic9+ugMcs wD9j3QWklnnwah2YkmFDCFie7YFSZZjUBxvcyh7mdjZBGdVD99OQlURnYYWm98Vo MhBDipdOJiHLRGWnyW5wfAumbrAg+j3H0iUojuCOL5NKUJZuVk4YPN2/3Jb0kjot A7pz/C5u6k+zRpJn2xtxGpArdwLDpzckzdiMIHOUEsOMPSPOjo7sf6jvbBLLK5+u JP7Xblq4xIKpQVboFOz7YAgu0HOfqA== =ctci -----END PGP SIGNATURE----- --=-=-=--