From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id bKH5A31xTmFCcQEAgWs5BA (envelope-from ) for ; Sat, 25 Sep 2021 02:46:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2By3OnxxTmEhVwAAbx9fmQ (envelope-from ) for ; Sat, 25 Sep 2021 00:46:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 763D83DB61 for ; Sat, 25 Sep 2021 02:46:51 +0200 (CEST) Received: from localhost ([::1]:34418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTvq6-0007qJ-HX for larch@yhetil.org; Fri, 24 Sep 2021 20:46:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTvpK-0007OU-Ol for bug-guix@gnu.org; Fri, 24 Sep 2021 20:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48059) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTvpK-0005Eo-H5 for bug-guix@gnu.org; Fri, 24 Sep 2021 20:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTvpK-0007V2-FE for bug-guix@gnu.org; Fri, 24 Sep 2021 20:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50789: syncthing-gtk creates autostart file with wrong bin Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 25 Sep 2021 00:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50789 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Leo Famulari Cc: 50789@debbugs.gnu.org, Liliana Marie Prikler Received: via spool by 50789-submit@debbugs.gnu.org id=B50789.163253074627928 (code B ref 50789); Sat, 25 Sep 2021 00:46:02 +0000 Received: (at 50789) by debbugs.gnu.org; 25 Sep 2021 00:45:46 +0000 Received: from localhost ([127.0.0.1]:59604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTvp3-0007Fj-OB for submit@debbugs.gnu.org; Fri, 24 Sep 2021 20:45:46 -0400 Received: from mail-4317.protonmail.ch ([185.70.43.17]:36069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTvp1-00076b-1G for 50789@debbugs.gnu.org; Fri, 24 Sep 2021 20:45:44 -0400 Date: Sat, 25 Sep 2021 00:45:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1632530736; bh=mUlOlhCTGz3i6xzIk/SRaZV1My/Qqtue6FfjwMgUujk=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=imjtMNx76yc1+aYz5Ne5qU5qvzc6Sr803Ny26fv7RRykggQWoZaKtHjvMCdnDl5EX F1NipUt62aStNUHV6UU8c/kZL256UHQ+moJAjuTaS/wThvyYCo6BuzXPqWw0+vtw2a BffvQQvO6gRnKvBzyrHTVjXGc8HofIHfB7RCsMCk= Message-ID: In-Reply-To: References: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias From: John Kehayias via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632530811; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mUlOlhCTGz3i6xzIk/SRaZV1My/Qqtue6FfjwMgUujk=; b=OBTLyuQ5dxiVvzNwseRAfkCxEYM9U8Ag1/VeT5/QfZU373h56dfzq/NjFRzR+0gUWjsM07 wnadKFyhy30uqZ8fiDhQIslr1A3DALwTJJCux2+Iddshp4lE41IFcrtLurFrsxRXxVFWCD 9adTOJ8OBXyVfYpUpfdnvr07/DLl0K5nNVxWrOAoJUcdvTKgGeNLIv8uJ8/mEaikOEbtCx +FwRMg1FvUZwv0hITXiAgGWv871CA7A/i9o6DHq/BoSEFf0Q+ov8+MrHebzzDg6c3c4x7f ojz94fQGbtziPVhc+x4VmehbuuYS0CfWCBrf4SQlY6MTvaIg0nWYabI8kfC3XA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632530811; a=rsa-sha256; cv=none; b=SvYROvaQdBrqHMIW+ONz4YdspOPLye/tYLtMBsWoxz7x4tOEnLVwJYzX2ZRsJzzzxjqVxP 9o+lpv+GC8A+drt4oh/Seh9FE9XXaD/uMNLTlbMlDuMtJQoAkpluMzeaKWd5lam4uHctwk yolSJSKasryCRHWtgP+KFWIJnC86W7IOrlIzrgDp8oadKLulGlk9EdzFArAs1ZbCMk3d9g oB5d5zvNb3NjjRPiutSmFft0lrjGoKDqVi4iRpxmn7Yloymad3joUyIeNFfVdLCBWi2EhO njmHB3YK3WuA/zA6CtSJ3XXS0sGJpe9guwbkNmB/cvxBZgPBBLKRqDY9kBU6Gw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=imjtMNx7; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=imjtMNx7; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 763D83DB61 X-Spam-Score: -1.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: BEq0mxwrp1oK Hi Leo, Liliana, et al, =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, September 24th, 2021 at 7:15 PM, Leo Famulari wrote: > Maybe we could make the desktop file execute a path like > > "$HOME/.guix-profile/bin/syncthing-gtk"? Hmm...these are both good points. And I think I may have run into stale fil= es produced by some programs due to this. Actually, checking now, I see the= same for redshift-gtk in the autostart .desktop file it makes (a /gnu/stor= e link). So this is perhaps more common when programs create files like thi= s. I think there are a few possibilities and assumptions that go with them. 1. Rely on $PATH so that it can just be Exec=3Dsyncthing-gtk This is pretty= common (non-Guix, at least) I think, but is an assumption. Seems safe for = a program like this, but ambiguous, especially with Guix allowing multiple = of the same-named bin to be installed at the same time. 2. Something like what was suggested by Leo, but we have to consider differ= ent profiles. Is that easy to account for in a build time patch? In my case= it ends up $HOME/.config/guix/profiles/desktop/desktop/bin/syncthing-gtk T= hough I guess this happens at install. Perhaps the Python code can be patch= ed to make something like this, based on its runtime path. 3. Remove the ability for these types of files to be created, as Liliana su= ggested. I think this is drastic though, changing the expected behavior in = programs and difficult to enforce evenly. The point raised is important tho= ugh, that direct /gnu/store links shouldn't be used in such a way. Perhaps there are others. What do we currently do in Guix, or what would be= preferred? From a user standpoint, I'd expect creating an autostart file (= for instance) to work as created and to continue to do so. John