From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: plugins as separate packages for desktop application Date: Mon, 29 Jul 2019 19:53:47 +0200 Message-ID: <87k1c0g21g.fsf@nckx> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46489) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs9qR-0004aU-5V for guix-devel@gnu.org; Mon, 29 Jul 2019 13:54:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs9qP-0007Gb-To for guix-devel@gnu.org; Mon, 29 Jul 2019 13:53:59 -0400 Received: from tobias.gr ([80.241.217.52]:37124) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hs9qP-00075y-22 for guix-devel@gnu.org; Mon, 29 Jul 2019 13:53:57 -0400 In-reply-to: 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: guix-devel@gnu.org, Jack Hill --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Jack, Jack Hill =E5=86=99=E9=81=93=EF=BC=9A > I think a good way forward would be to work with upstreams to=20 > have > their applications support an APPNAME_PLUGIN_PATH variable and=20 > when > plugins are present in a profile they would augment that=20 > variable. I agree. Many packages already do this & it jives nicely with our=20 native-search-paths feature. Two random lessons from previous experience with (well-meaning)=20 upstreams: 1. Ensure that it's a search path (in the GNU sense of the word),=20 a standard colon-separated one if at all possible, not just a=20 single directory. 2a. Ensure that this environment variable can't be too easily=20 (=3Daccidentally) masked by a user preference, and 2b. don't use it as a 'default value' to initialise a preference=20 that will later be saved to disc, because that's how we end up=20 with weird bugs. Thanks for taking charge of this, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXT8yqwAKCRANsP+IT1Vt eeaIAQCdcmmrtSrfUt9SisOGVaA6LWdkLy2LHVJBSqCJbiq54wD/ZFovRl5TntM5 dXBnKkE7AxZFXyXqa2Kj9I518OtepgY= =7fsr -----END PGP SIGNATURE----- --=-=-=--