From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kPNAItZXTmGCPwEAgWs5BA (envelope-from ) for ; Sat, 25 Sep 2021 00:57:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sO+/HdZXTmH0CwAAbx9fmQ (envelope-from ) for ; Fri, 24 Sep 2021 22:57:26 +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 D7CC015A6B for ; Sat, 25 Sep 2021 00:57:25 +0200 (CEST) Received: from localhost ([::1]:37112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTu8C-0000v1-3I for larch@yhetil.org; Fri, 24 Sep 2021 18:57:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTu7u-0000sl-K3 for bug-guix@gnu.org; Fri, 24 Sep 2021 18:57:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTu7q-0006Mg-DT for bug-guix@gnu.org; Fri, 24 Sep 2021 18:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTu7q-0005AK-AA for bug-guix@gnu.org; Fri, 24 Sep 2021 18:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50789: syncthing-gtk creates autostart file with wrong bin Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 24 Sep 2021 22:57: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: John Kehayias , 50789@debbugs.gnu.org Received: via spool by 50789-submit@debbugs.gnu.org id=B50789.163252416519750 (code B ref 50789); Fri, 24 Sep 2021 22:57:02 +0000 Received: (at 50789) by debbugs.gnu.org; 24 Sep 2021 22:56:05 +0000 Received: from localhost ([127.0.0.1]:59464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTu6u-00058T-Vl for submit@debbugs.gnu.org; Fri, 24 Sep 2021 18:56:05 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:33749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTu6t-00057v-DF for 50789@debbugs.gnu.org; Fri, 24 Sep 2021 18:56:03 -0400 Received: by mail-wr1-f67.google.com with SMTP id t18so31865556wrb.0 for <50789@debbugs.gnu.org>; Fri, 24 Sep 2021 15:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=4jCu5pKDntOQ/R4qXE0tz7cVmWNYi41jFtCXG9MfPgo=; b=YhYLxvNjEOvLadP4B5jUjXY6r1prhH0HzOhLw1cy7C5tvmAb1s75k6ShYMHG3c867T KhugpzdrFaksTuWS9b21SDZ7/59JkI6MiMQYvq4vsd5AlWcyFX9WLFn0MtzUFXK+x/SW ykinAJ7WIeRqTY461orLNRqBAmAleeL62jwhq+CWXqE4z4AX/5pCMmk6VdWB9fVjdN5Z 2N+8NKL1A/3q3WpYYzOs4ld9tEx3jhZNlgycWApluVgGfWkzTQadVBnJIrNJlvT7YIYJ 1W6KQbuWZitZUgyvCt8EGlGEaHpTjwl+XmJnnjHdQgMfuO6VipmqYAGLeUTTdkfprD7Y pf8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=4jCu5pKDntOQ/R4qXE0tz7cVmWNYi41jFtCXG9MfPgo=; b=R+HzXSvuXPQ7IVzKYIE6q1ripa/qnPwS1fL+zdPHf2rMCF0vlGFqRyjxPYEnufYSsf 9hskF25o2ihG2uVtmYTM8h2NauFBA8FlFGiczVo9NASi4SZF7qB/FQ9Sb1fCjnkLny/D qtvP33qZddDoGbiKWV30FDng9oLw9ztGycWv3HHVG5DBwWPhEkFwqVfMbocpRif+0WBz 4KlD3riCCWUKDoLE7DX/aJV0lzXovTIiUYN8nXAWRc/TfUdEYh42apGR82VTdLQbkvwZ FmYgFRVmLzLX1gLRLHkCdoeSzaNaipN7hHEhm7zLONuoKmsapPE/ri7/zsk/uJVxakeU 2a8A== X-Gm-Message-State: AOAM531UfeorPkNFOEqBYtSvgP9MAANgnGXv9f6Ub2l4BKKz3hfcZ9o2 Rl0WM8gi4qvgfAex1+Sol+Q= X-Google-Smtp-Source: ABdhPJzkcEEzwqdhFGRJH0UY6DPZEaWzVUwH81OlM/ENj9RjmMWcWpbJWbaIbDxzo0rLMwb3fkHowA== X-Received: by 2002:adf:f486:: with SMTP id l6mr13617486wro.375.1632524157424; Fri, 24 Sep 2021 15:55:57 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id x5sm11992253wmk.32.2021.09.24.15.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 15:55:57 -0700 (PDT) Message-ID: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> From: Liliana Marie Prikler Date: Sat, 25 Sep 2021 00:55:56 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632524246; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=4jCu5pKDntOQ/R4qXE0tz7cVmWNYi41jFtCXG9MfPgo=; b=Pd3CZS9Mk7Vb7AJYtOVL9KTQdYSjGXhAWO7W7M7vSRcOuDkIy2q4NBPSdEocWy2+588ES6 TqLCccf13jsmgVT1WeWIIm+tCceCveLAY4+TdSRDg4nRoAbHQonSM5UfAI0V72KgHn4lUK elvznwzkdEaRBMtWhTHgFsbgmp/tNh68jEp2bUPqOJbDaXU12llLmRXwZhLPhCML5ZhsFa QFqzbVAkwCMtpqs7xCgjaEIYJJbm9x+1FhGOSjVxWjlk65Tkuw7WujjurXNX1XrAewP4jC jtDBxPfKwfRsytBVYimIci7ERyEz/emILMb0GQuwS/Pp64j8PJFsvkjMsTJ5gA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632524246; a=rsa-sha256; cv=none; b=jZFi4wOmA4n49fHrhuBy2UfSYQIc7G03Po7iheH0cXSgvRsrmkyZKWpe7XD03jwCffeTVa zKNRiGyJyRuP0kIIds/IlkV5+yEx2ofAKG7MdupYcb4q7BmVXk8bcWppn4HMOm6QzBizBi p0Q6kFdZtMT0IeAH1gBlos64eaHk/JKr9S8BVSd0DJzoO9LluiqyKmk8stgRSHQ0LgdCLX r9MSm08oO4Mk2Lm0iEBMnbw2klV1njh++LxGcwj8hnIoc2c9PcKxmBhoZL7Zoe3HS0xhfv crTIS1E6dAeNZhmE+mgEGAu7boTKa3a5683//z/jyFRRkjuNpwuFAceI+VGJYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YhYLxvNj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 0.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YhYLxvNj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: D7CC015A6B X-Spam-Score: 0.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5+LTaG4q15pC Hi, Am Freitag, den 24.09.2021, 21:33 +0000 schrieb John Kehayias: > Hello, > > syncthing-gtk has an option to enable autostart, which it does by > creating the .desktop file in ~/.config/autostart However, this has > the wrong exec line, getting the -real script instead of syncthing- > gtk. This won't work as it needs to be run as syncthing-gtk. Namely, > it produces: > > Exec=/gnu/store/vf5h9jqhq40x8r46afaa0jgw7awg1361-syncthing-gtk- > 0.9.4.4-1.c46fbd8/bin/.syncthing-gtk-real > > Instead of > > Exec=/gnu/store/vf5h9jqhq40x8r46afaa0jgw7awg1361-syncthing-gtk- > 0.9.4.4-1.c46fbd8/bin/syncthing-gtk > > This is due to syncthing-gtk getting its executable name to write to > the .desktop file in get_executable(): > https://salsa.debian.org/debian/syncthing-gtk/-/blob/master/syncthing_gtk/tools.py#L409 > where due to wrapping it will find something that won't work when run > directly. > > How should this be solved in Guix? Should we patch this part of the > code to explicitly rewrite the path to have "syncthing-gtk" instead > of ".syncthing-gtk-real"? Related would be the discussion at > https://lists.gnu.org/r/guix-devel/2021-09/msg00088.html which I will > message separately. We should patch syncthing to not write a desktop file at all. Note how even if the binary name itself was correct, syncthing would link directly into the store, potentially producing a stale desktop file that breaks with garbage collection. Cheers