From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30228: desktop files embedding full path Date: Tue, 30 Jan 2018 12:00:02 +0100 Message-ID: <87r2q7393h.fsf@gnu.org> References: <20180123110012.GB16202@macbook41> <87o9ljxpzo.fsf@gnu.org> <20180129193946.GD17751@macbook41> 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]:39893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egTez-0008M1-Lw for bug-guix@gnu.org; Tue, 30 Jan 2018 06:01:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egTew-0007Hj-K3 for bug-guix@gnu.org; Tue, 30 Jan 2018 06:01:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:40669) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egTew-0007Hf-GH for bug-guix@gnu.org; Tue, 30 Jan 2018 06:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1egTew-0003qQ-8N for bug-guix@gnu.org; Tue, 30 Jan 2018 06:01:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180129193946.GD17751@macbook41> (Efraim Flashner's message of "Mon, 29 Jan 2018 21:39:46 +0200") 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: Efraim Flashner Cc: 30228@debbugs.gnu.org Hello, Efraim Flashner skribis: > 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-m= anaged. >>=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/f326bf371d690f1929f7c5c06a= ebf53c7255daa6/src/common/utility_unix.cpp#L73 What do you think should be done on the Guix side? We could patch the code above to not install the .desktop file in ~/.config, for instance. Thanks, Ludo=E2=80=99.