From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: bug#30228: desktop files embedding full path Date: Mon, 29 Jan 2018 21:39:46 +0200 Message-ID: <20180129193946.GD17751@macbook41> References: <20180123110012.GB16202@macbook41> <87o9ljxpzo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="n+lFg1Zro7sl44OB" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egFHk-0003NC-Oq for bug-guix@gnu.org; Mon, 29 Jan 2018 14:40:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egFHf-000573-58 for bug-guix@gnu.org; Mon, 29 Jan 2018 14:40:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:40311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egFHf-00056v-0l for bug-guix@gnu.org; Mon, 29 Jan 2018 14:40:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1egFHe-0003Ml-Ir for bug-guix@gnu.org; Mon, 29 Jan 2018 14:40:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87o9ljxpzo.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30228@debbugs.gnu.org --n+lFg1Zro7sl44OB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 24, 2018 at 03:58:51PM +0100, Ludovic Court=C3=A8s wrote: > Hi, >=20 > Efraim Flashner skribis: >=20 > > the owncloud-client package includes an option to add a .desktop entry > > to $HOME/.configure/autostart/, which allows it to autostart when you > > log in to your desktop environment. Because the full path of the binary > > is in the .desktop file, it will always start THAT copy of > > owncloud-client, even if it is garbage collected. >=20 > I think you shouldn=E2=80=99t copy manually the .desktop file to > ~/.configure/autostart, precisely because of that. >=20 > Instead this should be done via in indirect GC root (as in =E2=80=9Cguix = build > -r the-root owncloud-client=E2=80=9D) or, ideally, by having it GuixSD-ma= naged. >=20 > Thoughts? >=20 > Ludo=E2=80=99. I agree it shouldn't copy a .desktop file into .config/autostart/. In this case, the offending code is here=C2=B9, so there's not much that can be done about it. In mine I've changed the Exec line to /var/guix/profiles/per-user/... so it'll work as expected. In this case the code generates a desktop file on the fly, so modifying the .desktop file shipping with applications wouldn't even help here. =C2=B9 https://github.com/owncloud/client/blob/f326bf371d690f1929f7c5c06aeb= f53c7255daa6/src/common/utility_unix.cpp#L73 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --n+lFg1Zro7sl44OB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlpveH8ACgkQQarn3Mo9 g1GuLRAAmKRkH0UuF62TFHrhWNcxELhFHKJ0+hvYAjxJUELnTGbZct83Kosl8RjQ 6lUbzUObonwmrWbD4wX8HKG+ZzMJTpY+g59RE2FgHErmZhzJSI5WqhGM4p3l/eRB Hxd6dicW9BEKKFgmbukIjIJGrT/ftUuVf7JLGyBol7hsLePVAgXe9saMCwSz4S3s FBmxzzWIv06m0DTiXgmDaatleExlm+4A/EodHQd3XDjOVQOzGJbiMx6T2uN/pohj e8uRWSNyeOWBn7mMSKQraBbw45XJwZhws+8qgqYdnMDCmh86HlrU3SYlprJxLjEq iHPOtt2J/W3v1QmMLP+nh+cjN/KHvHkEmADsilnCT0D8xK5uWpmPiGpqSqYEX3gq yz+Kf3T/uO46yHdcbeIQ5yD8wdHVmzl6eZN6dRia2GNawK7bYNcy6dYZcNvD8EkM sOOI2oNnwjO52UBJbd6Vl4BrMgJBzeAUJKUXp9qQnvOAKdyUEQVZlNqxdvmja3uj k8pcYYzB2N30KjQZXNqM4oTlrBaDMh07LS2AEeopP/v89wPODhmn0b64b5aTg2gV 30ZUCXizoR+1684OQQn/DgZCm/qtNj5FLHDOfxLYyOb8/oNEIpPsHty6b5SzbWJt Hj+89LYiUqGlDCDQQekJZ8n/mu7irh5TVb4zngyiCij3ReOnD6I= =R573 -----END PGP SIGNATURE----- --n+lFg1Zro7sl44OB--