From unknown Mon Jun 23 02:22:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50789 <50789@debbugs.gnu.org> To: bug#50789 <50789@debbugs.gnu.org> Subject: Status: syncthing-gtk creates autostart file with wrong bin Reply-To: bug#50789 <50789@debbugs.gnu.org> Date: Mon, 23 Jun 2025 09:22:16 +0000 retitle 50789 syncthing-gtk creates autostart file with wrong bin reassign 50789 guix submitter 50789 John Kehayias severity 50789 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 17:34:10 2021 Received: (at submit) by debbugs.gnu.org; 24 Sep 2021 21:34:10 +0000 Received: from localhost ([127.0.0.1]:59359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTspe-0006e6-GE for submit@debbugs.gnu.org; Fri, 24 Sep 2021 17:34:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:38578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTspc-0006dz-Oi for submit@debbugs.gnu.org; Fri, 24 Sep 2021 17:34:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTspc-0000lZ-Hb for bug-guix@gnu.org; Fri, 24 Sep 2021 17:34:08 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:58846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTspa-0008Ud-Ch for bug-guix@gnu.org; Fri, 24 Sep 2021 17:34:08 -0400 Date: Fri, 24 Sep 2021 21:33:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1632519240; bh=dPjOscLNeI3cRcmKbX0rh1PXNU8gz2qbpEvTIoVvM3o=; h=Date:To:From:Reply-To:Subject:From; b=QuekknQErc29CjxQRoN6shwETHUK9YBfliGd1FeTqif9GbWEiiBOYJ+6Z5hw77eIg Yp7odG6t8IgVypyZL+HGrRf4C0XOoX68tCh2xJ0PdNwqOzPgyARGWQ3vUYziGAN9DC ZPTB+Cs8w3Ar/M3vgmUX86bmZFYTp/eRnO4XwTU8= To: "bug-guix@gnu.org" From: John Kehayias Subject: syncthing-gtk creates autostart file with wrong bin Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=188.165.51.139; envelope-from=john.kehayias@protonmail.com; helo=mail-0301.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 l= ine, 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=3D/gnu/store/vf5h9jqhq40x8r46afaa0jgw7awg1361-syncthing-gtk-0.9.4.4-1.= c46fbd8/bin/.syncthing-gtk-real Instead of Exec=3D/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 .d= esktop 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. Thanks, John From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 18:56:05 2021 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> Subject: Re: syncthing-gtk creates autostart file with wrong bin From: Liliana Marie Prikler To: John Kehayias , 50789@debbugs.gnu.org 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50789 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 19:16:01 2021 Received: (at 50789) by debbugs.gnu.org; 24 Sep 2021 23:16:01 +0000 Received: from localhost ([127.0.0.1]:59488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTuQD-0007uE-5E for submit@debbugs.gnu.org; Fri, 24 Sep 2021 19:16:01 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:55761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTuQB-0007u0-0P for 50789@debbugs.gnu.org; Fri, 24 Sep 2021 19:16:00 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 5A951320079B; Fri, 24 Sep 2021 19:15:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 24 Sep 2021 19:15:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=ad/i8LArVxa77ipGhTmUcUDd YC0ySz5Aj3w1O9H6hkk=; b=mPg+hxcvkx9FNV7KIDMy6LdZX6INil03iVGjBOEp iYFE7CNqkrROKsWhW30I0zkc80D2iy/0vGSNIOIKi/SOek2OJ5u834Ki/jpwbjEq L14KrcJ2QUfuS9Tp2bsjapDRfRWg06fr1qfUTj6elBIOlQ8MAVS3i4S3Dt3xy/Up tJQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ad/i8L ArVxa77ipGhTmUcUDdYC0ySz5Aj3w1O9H6hkk=; b=EAliPYKrYOmYz6f/kvb0G+ E38MPJ+5JYbuiPQDH1xZPzni7MnyGJF9sjVV0h4bZ3pkxjdsQgn8qKsSpgHAcu9Z V3u0BBeN2ubPmPPCOv7Dt0ibWuTULyuMXLxCmSWgDcKBJ6jyE/wlbUIxTVttiATL cpSznSuh8oOuJxnx/oZlkSf9b7VZu0mNdFj4GIekXj92c7QjFfKGVJZgqHO6PiYr Hmym5Wt5GbLSGx0G2pwT69bYK9HHtdKgJUTSwcheLHm3OqPsNmyh4UwS3MWrtm6W n+RlacEzbwInhg4W3vFco2/IAJ+f9VLsOi9OHM3R51RXDoRBnJUPaymIrmYzJq6Q == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudejvddgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefnvghoucfh rghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrghtth gvrhhnpeeukeektdffvddtudegjeegtdevhfeufeeivdejiedtieegtdevjedvjeehffev gfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvg hosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Sep 2021 19:15:52 -0400 (EDT) Date: Fri, 24 Sep 2021 19:15:51 -0400 From: Leo Famulari To: Liliana Marie Prikler Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin Message-ID: References: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 50789 Cc: John Kehayias , 50789@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, Sep 25, 2021 at 12:55:56AM +0200, Liliana Marie Prikler wrote: > 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. Maybe we could make the desktop file execute a path like "$HOME/.guix-profile/bin/syncthing-gtk"? From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 20:45:46 2021 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= To: Leo Famulari From: John Kehayias Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin 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-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50789 Cc: 50789@debbugs.gnu.org, Liliana Marie Prikler X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 25 03:02:38 2021 Received: (at 50789) by debbugs.gnu.org; 25 Sep 2021 07:02:39 +0000 Received: from localhost ([127.0.0.1]:60165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mU1hm-0006G1-NY for submit@debbugs.gnu.org; Sat, 25 Sep 2021 03:02:38 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mU1hi-0006Fh-Bi for 50789@debbugs.gnu.org; Sat, 25 Sep 2021 03:02:37 -0400 Received: by mail-wr1-f68.google.com with SMTP id t8so34201013wri.1 for <50789@debbugs.gnu.org>; Sat, 25 Sep 2021 00:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=fSmvE54CPY22J9Emdh+wNtbhHxDHjy9Z3g+eEd5zgYc=; b=cBK8pIS27VjK/F6DM5RWYpWF6jkKSLcrTNz3Kux/tixmnlBBDGq3tskyyBBf+kDPCG 2HJ2nlmWCY2dIQnMqfmf/jvxRQebE4cTH9lRQS2HQmJx0DNzGMJi8UseFttx3S+YEOzR 7JAfSzC++UP7OU+w4Ao/jtKEQnoWwo//fpnj7CM4M9RlPnl8InJvGeN+E8c/eLKmAMyK ukzFTnpDmXbAvJENzWS3v4/ne69nYV4q9gNXGzSHsKeRjzqFLpTNmMN/VGiR9V5iajcR k3jhArU6iNJc1FXAQx2QZvnpmdvWRDiJGSLsEaBVIsKhWG6pEnE6mIiL0Hw4L0YM6F+F qfHg== 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:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=fSmvE54CPY22J9Emdh+wNtbhHxDHjy9Z3g+eEd5zgYc=; b=yf5TIerWCVfXdnhAnAyQzKYe/8VXJrDOlBRqGCcOwHmcGh2sus3iuGUDjAVB8uNBq6 j8YNdbJKUeWji49CefRDtmL+D436FgM+VhzVhVJsbcPuTHDztqssd72OY1GlRIXkVU5k bkAAZMH1zX7k1Fa3tugCpC6CjutiteERjVY9q6KzZXyK4c/2/3IxjXtoAQJk2x46tQZv vmtNSGjhf8/w6dLqLfZbarmFZLC+HNT0yxjuI0s5P85KbRvilOLhAfiIxLdTlGQCG3Cv sP0USXJu0gUxObAIaaKozebSRDzJ6w1aseO3VdtNq6iEZrwDifsEZr7Ct79akPHDaBoH qjZw== X-Gm-Message-State: AOAM533OuZ8ktMXikTyYBX3ihcifjTWJimpq0uzf2Hae2g1paswGVOge sWWRmsRpR4y4I2y50d6lib8= X-Google-Smtp-Source: ABdhPJz4ZjD/A6QN3haN68Q3UgsQjxAqEVh8DpbOd6Yv3xXBxce3XnR74LbvN08nAsNNb8MlH/idcA== X-Received: by 2002:adf:e783:: with SMTP id n3mr6781034wrm.37.1632553348379; Sat, 25 Sep 2021 00:02:28 -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 e5sm10155221wrd.1.2021.09.25.00.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Sep 2021 00:02:28 -0700 (PDT) Message-ID: Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin From: Liliana Marie Prikler To: John Kehayias , Leo Famulari Date: Sat, 25 Sep 2021 09:02:26 +0200 In-Reply-To: References: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50789 Cc: 50789@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi John, Am Samstag, den 25.09.2021, 00:45 +0000 schrieb John Kehayias: > [...] > > 3. Remove the ability for these types of files to be created, as > Liliana suggested. I think this is drastic though, changing the > expected behavior in programs and difficult to enforce evenly. The > point raised is important though, 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. I think the answer to that one is fairly simple. Guix should provide a mechanism to generate/link autostart services, ideally via (guix home), which will be upstreamed soon (idk if it has one such service already, just throwing it out there). However, the preferred solution is to not bother with autostart at all and instead use shepherd to manage user services – there is a tradeoff to be made between those management styles somewhere. Cheers From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 27 15:04:59 2021 Received: (at 50789) by debbugs.gnu.org; 27 Sep 2021 19:04:59 +0000 Received: from localhost ([127.0.0.1]:42880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUvvv-0001Ye-6f for submit@debbugs.gnu.org; Mon, 27 Sep 2021 15:04:59 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:41663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUvvs-0001YP-Nn for 50789@debbugs.gnu.org; Mon, 27 Sep 2021 15:04:57 -0400 Date: Mon, 27 Sep 2021 19:04:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1632769490; bh=5a425lWaF8nkk5zzlUcNR1v8xUxG6uICGTiERm09x/U=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Q036kpKV3HuY+Zo88ckEdeYGCw6wgo61UQPyLl56z96Gcx6PynClTpYb/c1/fpU9n 1zHw8S0ygEpxMXdSZbmozUFrc1zV4gS5k4wNC0aa7lYN7SWAy577621HE6Z/GUQzjj pvhrwovwFhT2ous+1ELu+Ahdi51hmh+xRsw9yZdE= To: Liliana Marie Prikler From: John Kehayias Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin Message-ID: <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com> 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-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50789 Cc: 50789@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi everyone, =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 Saturday, September 25th, 2021 at 3:02 AM, Liliana Marie Prikler wrote: > I think the answer to that one is fairly simple. Guix should provide a > mechanism to generate/link autostart services, ideally via (guix home), > which will be upstreamed soon (idk if it has one such service already, > just throwing it out there). However, the preferred solution is to not > bother with autostart at all and instead use shepherd to manage user > services =E2=80=93 there is a tradeoff to be made between those managemen= t > styles somewhere. > I agree we can have a better "Guix way" of doing autostart, documented with= examples (perhaps a Cookbook chapter on Desktop usage of Guix). User run s= hepherd works, at least for some basic background services I run. I don't t= hink it is as documented or as fleshed out as XDG autostart stuff. I too am= interested in guix home (just merged!) and will take a look at that. But back to the matter at hand. Medium to long-term I support better Guix s= ervices for autostart, but that doesn't address the problem of having packa= ges run as intended by upstream, at least with reasonable expectations. I t= hink this is expected and reasonable behavior, that a program can create a = proper .desktop file in Guix. Looking at another non-Guix system, the autostart files I have in ~/.confg= /autostart mostly (syncthing-gtk being the main exception) use just Exec=3Dprogram-name I see this mostly true for /etc/xdg/autostart as well (non-Guix system). So= I think this is an easy and typical behavior we can implement. In this cas= e patching syncthing-gtk to produce Exec=3Dsyncthing-gtk. Perhaps upstream = would consider it as well, unless they have good reason for a full path her= e, as opposed to other programs. (Upstream is a bit quiet in activity thoug= h.) What do we think? John From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 27 17:23:46 2021 Received: (at 50789) by debbugs.gnu.org; 27 Sep 2021 21:23:46 +0000 Received: from localhost ([127.0.0.1]:42997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUy6E-00051W-2G for submit@debbugs.gnu.org; Mon, 27 Sep 2021 17:23:46 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUy6C-00051J-9F for 50789@debbugs.gnu.org; Mon, 27 Sep 2021 17:23:45 -0400 Received: by mail-wr1-f65.google.com with SMTP id s21so14247125wra.7 for <50789@debbugs.gnu.org>; Mon, 27 Sep 2021 14:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=ILC3MXK6y/kJRAng61K+nhF2Wzk5EKLSxAXWif4bwpw=; b=OiCiOM9JPkxBqKdS+IW0GUdxEzyZYDDCipo6z8F39R498tIerdsCOZyTp078O0KKZ4 2+1GflSJXg9h8ICd36svWzj3voc7KYX6PZj9A7VdD57yA3uwVgTcX2N9jMRWVtPZytvn h0xyGT20w+j+Yh41qkQGPXv3jkroTh1y62FFD5fXf2xIEpg5A2U9jzBs7YSuWPEdu8jC 3AZXiFx93HKaDryRHVUOp0mEoF2+lJJN4JH4Pzyi5I2pDn/QAGAqz1fGF908YoWq1wh6 jnFrjHxyA/3pa2oJmIyGQkRPodA80p29pc9EQqKNMtbZ5a7vasy5IGKCT5GM3p+7x7G3 KmlQ== 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:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=ILC3MXK6y/kJRAng61K+nhF2Wzk5EKLSxAXWif4bwpw=; b=2q7JE6Na6MUJi3gXmCmCB+n/rizYEzwIPAI46YzUmCaR4aOJ7pVU0wQ/eyj3HRNw3X FHFFaTnyupNE/sK4zJObWv8ZTauX04l3JNqRN7rGVbB4zDMpONdKr5irSZUeI9GjzOSL Dz4TvZ6WcMLsjxdNCimL0PeluFzzVzMvDrUDKiXUfSkjkrjy1TUGZl76mjHSsOkbZn4V UbIVFd6CY3Z2lZl9Sq2CdK4VG2NORvGULe5bJJ4dinLQGPmIMEqmkkm/yMuDFrB9z1KF IJb/1FToauelPI8NQNOON4cCXY9WjjzThVlTHX9DanNfoBy8kQwALGU2CUdXRCJEHuzC 36PQ== X-Gm-Message-State: AOAM5335SKQvzBKu4cuzxMp5Ga/Q4q6T2amO6tjRXUBr//mB6+JlXTdH 40zk7jAgjE/G+5rEZIaXHOc= X-Google-Smtp-Source: ABdhPJx3b7qzj1Xb7AGks+cq0wADMZLnzT5q8JpR5LIIBWgrYqmsUXEFUmK9nrVH0ku8OltXVlCQ2w== X-Received: by 2002:adf:e491:: with SMTP id i17mr2259386wrm.415.1632777818489; Mon, 27 Sep 2021 14:23:38 -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 z5sm819979wmp.26.2021.09.27.14.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 14:23:37 -0700 (PDT) Message-ID: <0ae4d2bfcce16f79680321817ac9e55a380dd0bd.camel@gmail.com> Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin From: Liliana Marie Prikler To: John Kehayias Date: Mon, 27 Sep 2021 23:23:36 +0200 In-Reply-To: <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com> References: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50789 Cc: 50789@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Am Montag, den 27.09.2021, 19:04 +0000 schrieb John Kehayias: > [...] > > But back to the matter at hand. Medium to long-term I support better > Guix services for autostart, but that doesn't address the problem of > having packages run as intended by upstream, at least with reasonable > expectations. I think this is expected and reasonable behavior, that > a program can create a proper .desktop file in Guix. Unless you are running a dedicated desktop file/autostart editor like alacarte or whatever gnome-tweaks has going for it, writing to .config/autostart is not reasonable behaviour. > Looking at another non-Guix system, the autostart files I have > in ~/.confg/autostart mostly (syncthing-gtk being the main > exception) use just > > Exec=program-name The "full path" desktop files used in Guix do have some advantages. Also, on other distros when using stuff like systemd in a similar manner to shepherd, you have full paths again. > I see this mostly true for /etc/xdg/autostart as well (non-Guix > system). So I think this is an easy and typical behavior we can > implement. In this case patching syncthing-gtk to produce > Exec=syncthing-gtk. Perhaps upstream would consider it as well, > unless they have good reason for a full path here, as opposed to > other programs. (Upstream is a bit quiet in activity though.) > > What do we think? I think upstream as good reasons to use full paths, e.g. to prevent the wrong syncthing from being used when there are two in /usr and /usr/local. Were Guix to police upstream on this matter, the decision would clearly be to make this feature optional at the click of a button – and not one that annoyingly pops up if Icecat is not your default browser, if you understand what I'm trying to say. Regards From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 15:30:00 2021 Received: (at 50789) by debbugs.gnu.org; 30 Sep 2021 19:30:00 +0000 Received: from localhost ([127.0.0.1]:54054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW1km-0003hr-56 for submit@debbugs.gnu.org; Thu, 30 Sep 2021 15:30:00 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:27731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW1kj-0003he-NM for 50789@debbugs.gnu.org; Thu, 30 Sep 2021 15:29:58 -0400 Date: Thu, 30 Sep 2021 19:29:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1633030191; bh=P1gkNFOcwxX79MbPEr990Mq1xGSiwOV39Rpgtxqh9NI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=DRq3czHa+6qzD3HDzJHNJA9St9hwhiJDSff571+ESbWYL0OhseRp9cJ4nQCgmxMa0 O3rqNjgspW5lAHbu6kyPTiAnVT+pvDLo8iGKRWqGnYHoAkmUJqWsnovshyIRDj6ny3 EzUzpkzEcDJNgdG6C8O7wjH3OSaKvR6R66xGwOuo= To: Liliana Marie Prikler From: John Kehayias Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin Message-ID: In-Reply-To: <0ae4d2bfcce16f79680321817ac9e55a380dd0bd.camel@gmail.com> References: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com> <0ae4d2bfcce16f79680321817ac9e55a380dd0bd.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50789 Cc: 50789@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, =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 Monday, September 27th, 2021 at 5:23 PM, Liliana Marie Prikler wrote: > Hi, > > Am Montag, den 27.09.2021, 19:04 +0000 schrieb John Kehayias: > > > [...] > > > > But back to the matter at hand. Medium to long-term I support better > > Guix services for autostart, but that doesn't address the problem of > > having packages run as intended by upstream, at least with reasonable > > expectations. I think this is expected and reasonable behavior, that > > a program can create a proper .desktop file in Guix. > > Unless you are running a dedicated desktop file/autostart editor like > alacarte or whatever gnome-tweaks has going for it, writing to > .config/autostart is not reasonable behaviour. > Sorry, I don't understand this comment. I think this is just the XDG specif= ication, user autorun desktop files go in ~/.config/autostart. If a program= wants to autostart (e.g. user enables the option) this I think is the expe= cted and conformant behavior. I see many programs doing this (and is where = you'd write if you want to change the per-user behavior of something in the= system autostart, which might also be relevant). Anyway, we are getting si= detracked and that's not important for the matter at hand, I don't think. > > Looking at another non-Guix system, the autostart files I have > > in ~/.confg/autostart mostly (syncthing-gtk being the main > > exception) use just > > > > Exec=3Dprogram-name > > The "full path" desktop files used in Guix do have some advantages. > Also, on other distros when using stuff like systemd in a similar > manner to shepherd, you have full paths again. > > > I see this mostly true for /etc/xdg/autostart as well (non-Guix > > system). So I think this is an easy and typical behavior we can > > implement. In this case patching syncthing-gtk to produce > > Exec=3Dsyncthing-gtk. Perhaps upstream would consider it as well, > > unless they have good reason for a full path here, as opposed to > > other programs. (Upstream is a bit quiet in activity though.) > > > > What do we think? > > I think upstream as good reasons to use full paths, e.g. to prevent the > wrong syncthing from being used when there are two in /usr and > /usr/local. Were Guix to police upstream on this matter, the decision > would clearly be to make this feature optional at the click of a button > =E2=80=93 and not one that annoyingly pops up if Icecat is not your defau= lt > browser, if you understand what I'm trying to say. > So then I think we end up wanting to patch syncthing-gtk to create somethin= g like Exec=3D/path/to/profile/bin/syncthing-gtk I'm not sure off the top o= f my head how to do that (without ending up as it currently does with the d= irect /gnu/store/.../.syncthing-gtk-real since that is what the program wil= l see as the origin of the process). I can take a look if no one has the Py= thon incantation ready. Or else default to using $PATH and/or which; probab= ly the right thing most of the time but I'm not sure. John From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 16:00:57 2021 Received: (at 50789) by debbugs.gnu.org; 30 Sep 2021 20:00:57 +0000 Received: from localhost ([127.0.0.1]:54078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW2Ej-0004VZ-3L for submit@debbugs.gnu.org; Thu, 30 Sep 2021 16:00:57 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39697) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW2Ef-0004VM-Q2 for 50789@debbugs.gnu.org; Thu, 30 Sep 2021 16:00:55 -0400 Received: by mail-wm1-f68.google.com with SMTP id i6-20020a1c3b06000000b0030d05169e9bso7205751wma.4 for <50789@debbugs.gnu.org>; Thu, 30 Sep 2021 13:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=t5xaQ1INVTFQ4sSnYiPQZiA1iGjTE8u7q6vcO031EUo=; b=MEZqBsoL9ZRryAdJ0eNchbpKGzzgwpo2xKAKcN4yFm1AXAv4hSTslaJijuTyX56dsW ZU88baTMtwuWjaPvEQ3hBcLfGK6mgcjziVxtZgSeIlSOrmk5CeBoZ8VhGNpQHHey5XM6 XDueYp1HOte25xFqzX/8YswHslQ4OMUywBaC/84tjh+IJbzXzmPAw3F5UDm5lCLm5r3q 7aGidET2g3JW6piwGzVGmbU885QagGwrr4y6Zpp13D7BQ+smy8RzViJus8Qca6GF05wS xrdG4t8imvhFpLgtF33e4TkQa7q5aLK+/u2kJ/5YiUbnwEg5A7q3CR71jcHgRllkr6fv rp/g== 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:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=t5xaQ1INVTFQ4sSnYiPQZiA1iGjTE8u7q6vcO031EUo=; b=TZvpt89MHcV4MUlFeqMujZncz+SXfWEiggowxRAjJkMG1zmrA97KQUcKTBzAFzqnvU o3Oa9Ws49P+FM7wr+qEdjRUmTAfoQfDAv1UoQPXHwqrbhxGi/MmKD6zxsDse3XOb3rrt zCRVI08Xg1p+f63elsxvCrdC+mIFmaoor+kVgxjrZWrV9P6PVy1vzILQF7K/CmfXxnro F61lhSCUAnpHb9p/GVhHmn+6qipftgbjQSo4La7nuWBzoZ795hPNfWnnx+XDAkXWSLXv sDJRupohhBUopIht/ICeikQLxeDQ1idPz7J6hYVskORMVgXCYo9T6ijfj3ZiXZH9uKPP JHQQ== X-Gm-Message-State: AOAM530wH9IUC395z5aErKzIybnHO/3xLDD5koRGn9Nitb/GZCpHiqjj WRnyVbI0e88VhzEeUGJOEV8= X-Google-Smtp-Source: ABdhPJzU4MGs19cSa0FZYWHJ56aFVyrmZ5EzWK9BaGI/Mo2+TN7F3uyZbZqEtiFEaIUv9hlGq6AsWw== X-Received: by 2002:a05:600c:214a:: with SMTP id v10mr871067wml.167.1633032047851; Thu, 30 Sep 2021 13:00:47 -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 g25sm3765863wrc.88.2021.09.30.13.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 13:00:47 -0700 (PDT) Message-ID: Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin From: Liliana Marie Prikler To: John Kehayias Date: Thu, 30 Sep 2021 22:00:45 +0200 In-Reply-To: References: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com> <0ae4d2bfcce16f79680321817ac9e55a380dd0bd.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50789 Cc: 50789@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Am Donnerstag, den 30.09.2021, 19:29 +0000 schrieb John Kehayias: > Hello, > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On Monday, September 27th, 2021 at 5:23 PM, Liliana Marie Prikler > wrote: > > > Hi, > > > > Am Montag, den 27.09.2021, 19:04 +0000 schrieb John Kehayias: > > > > > [...] > > > > > > But back to the matter at hand. Medium to long-term I support > > > better Guix services for autostart, but that doesn't address the > > > problem of having packages run as intended by upstream, at least > > > with reasonable expectations. I think this is expected and > > > reasonable behavior, that a program can create a proper .desktop > > > file in Guix. > > > > Unless you are running a dedicated desktop file/autostart editor > > like alacarte or whatever gnome-tweaks has going for it, writing to > > .config/autostart is not reasonable behaviour. > > > > Sorry, I don't understand this comment. I think this is just the XDG > specification, user autorun desktop files go in ~/.config/autostart. > If a program wants to autostart (e.g. user enables the option) this I > think is the expected and conformant behavior. I see many programs > doing this (and is where you'd write if you want to change the per- > user behavior of something in the system autostart, which might also > be relevant). Anyway, we are getting sidetracked and that's not > important for the matter at hand, I don't think. Just because many programs do this doesn't mean they have a good rationale to do so. Managing autostarts joins the ranks of having an updater for the program itself and messing with context menus or mimetype associations. This is not the Microsoft OS, we have better ways of managing things here. > > > Looking at another non-Guix system, the autostart files I have > > > in ~/.confg/autostart mostly (syncthing-gtk being the main > > > exception) use just > > > > > > Exec=program-name > > > > The "full path" desktop files used in Guix do have some advantages. > > Also, on other distros when using stuff like systemd in a similar > > manner to shepherd, you have full paths again. > > > > > I see this mostly true for /etc/xdg/autostart as well (non-Guix > > > system). So I think this is an easy and typical behavior we can > > > implement. In this case patching syncthing-gtk to produce > > > Exec=syncthing-gtk. Perhaps upstream would consider it as well, > > > unless they have good reason for a full path here, as opposed to > > > other programs. (Upstream is a bit quiet in activity though.) > > > > > > What do we think? > > > > I think upstream as good reasons to use full paths, e.g. to prevent > > the wrong syncthing from being used when there are two in /usr and > > /usr/local. Were Guix to police upstream on this matter, the > > decision would clearly be to make this feature optional at the > > click of a button – and not one that annoyingly pops up if Icecat > > is not your default browser, if you understand what I'm trying to > > say. > > > > So then I think we end up wanting to patch syncthing-gtk to create > something like Exec=/path/to/profile/bin/syncthing-gtk I'm not sure > off the top of my head how to do that (without ending up as it > currently does with the direct /gnu/store/.../.syncthing-gtk-real > since that is what the program will see as the origin of the > process). I can take a look if no one has the Python incantation > ready. Or else default to using $PATH and/or which; probably the > right thing most of the time but I'm not sure. As I stated initially you could hardcode the store path to syncthing- gtk in its stead but it's still a store path in the end. It must go stale by design. The only reasonable thing is to not install the file and instead give users the tools to do so on their own. Regards From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 16:13:43 2021 Received: (at 50789) by debbugs.gnu.org; 30 Sep 2021 20:13:43 +0000 Received: from localhost ([127.0.0.1]:54102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW2R4-0004qL-Gk for submit@debbugs.gnu.org; Thu, 30 Sep 2021 16:13:42 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:36994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW2Qz-0004q2-Fo for 50789@debbugs.gnu.org; Thu, 30 Sep 2021 16:13:41 -0400 Date: Thu, 30 Sep 2021 20:13:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1633032810; bh=ol8dWvVfJjpvN6vZ/92R52evJ2bBI/cfCN0WhA9Q9Jo=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=PbvkDoN9WOkIRjwMNtqvuSSBQu74yPBwVP6khufCzQQ+Ehld33ZRxxbczD4S4ir+l Z5d8s6QbEGb9MwQjnZ4NqJUD7xKwykdMmKdhYxaK5nKY36ORXfeqJTrCCZ8IdDGwkc T7jA8mczGxb7ZCnP66CSmshYSrs63O2cg7/XObIw= To: Liliana Marie Prikler From: John Kehayias Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin Message-ID: <17bI1MfgO4sTMxxomP-QgHLKp0qztdZkexN8PYWs-md9elisnhlMWS8ObCnD3Uw1HFhbBgwbqf_SlO8YUB0oX5KEULytAdtf_3su5KstMyE=@protonmail.com> In-Reply-To: References: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com> <0ae4d2bfcce16f79680321817ac9e55a380dd0bd.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50789 Cc: 50789@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =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 Thursday, September 30th, 2021 at 4:00 PM, Liliana Marie Prikler wrote: > > As I stated initially you could hardcode the store path to syncthing- > gtk in its stead but it's still a store path in the end. It must go > stale by design. The only reasonable thing is to not install the file > and instead give users the tools to do so on their own. > For a medium to long-term solution, what would you advocate for? A note in = a package's description that they should see the manual or cookbook for how= to autostart this program if they want (since it will show up in the prefe= rences menu)? Of course, we'll need that documentation first :) Maybe an ex= ample piece of code for using Shepherd to start, or guix home (I still need= to look at that)? Perhaps this should be raised more generally in the deve= l list to be consistent in Guix, since this won't be the only one. In the meantime, I'll try to find if getting the profile to bin path is not= too tricky, if not at least make it so the path it does use points to sync= thing-gtk and not .syncthing-gtk-real, since that is incorrect in every way= . From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 01 03:44:10 2021 Received: (at 50789) by debbugs.gnu.org; 1 Oct 2021 07:44:10 +0000 Received: from localhost ([127.0.0.1]:54600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWDDG-0005A5-JK for submit@debbugs.gnu.org; Fri, 01 Oct 2021 03:44:10 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWDDE-00059r-BW for 50789@debbugs.gnu.org; Fri, 01 Oct 2021 03:44:09 -0400 Received: by mail-wr1-f66.google.com with SMTP id t8so14047696wri.1 for <50789@debbugs.gnu.org>; Fri, 01 Oct 2021 00:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=r0XdKYYMizB85vMJRQAaD72AnrZjgzheCbgyGIsxxyg=; b=Y3R5yDB97VWpCAMCMadKeDD5pQTGMnLZSiwSsoDHdTrWhYRYHlpv7i3p9ZADD+Tf/e UaBpoILGhDl406rEFx3fg8qEJkEBzmxh+pSK/V32tNkRbhiNI8l+z/KO+n2jAXYiR5Kq DP3CFjN3hgE76a+Og2xEUZ60AJ+7JXOMEKDbCkUkl6oX/dV07O6ue/HLDV4YDjdcfUXc 5HjsWsgg1z6hd0vdkIPNj/HKs5mIdIk6Kt8s+Cl8M15lUjz9hntqhLmflF9mtMSI8e9C WCDOtvi0dOakJAURw24o3rh7GT349ZUumpyaNsPYLgQY55P7jm77+Xg20fqJU0iCdgBb c6HQ== 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:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=r0XdKYYMizB85vMJRQAaD72AnrZjgzheCbgyGIsxxyg=; b=nOEEec7ceakQUocO3h+8qWtk41gzkM3JMvPSk9KqL9aDIqUJZh58Cu5L4jpQT8Uf30 wAp67iU0MPvPLTOJ92QyrE+Ttdbp5TZnkNeQwnh7p+rvjBD3wHDtjq3h2yQI7OhyagIH 86z/lTT95Pj1AuZKuV2ugx0VghjOjbKeT82z1K7qZkAnUrfx8dxxEjp4I2S+9Dj2hatM QK9vAm2g9pawQfFzbnSUtZGqivAvA1VCoORUcfO1OgVtkvS6OfjKrPw1MuSsPFVIdrdI U9QI8wfi9T6xutjoXAL/HOqv+7Gn5jvUS7h1gYA5Ye5byCRADIGmgi6whOxXJq6S626U xDqw== X-Gm-Message-State: AOAM533+4TVVrp81bV7qxR89cOUE3/E/pXgquv9h2DaUrD2+9rjxiVXz FV2GcrjJTm3/YjOSvpCz4H0= X-Google-Smtp-Source: ABdhPJw4IiD4lQy16AJtPkuEidDVw0V/idCUpwDrf5bhwvC8YeWJHU7YFUpUeMgi8AP93Rx37yiASw== X-Received: by 2002:adf:9bd3:: with SMTP id e19mr4755874wrc.136.1633074242355; Fri, 01 Oct 2021 00:44:02 -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 o7sm5996514wro.45.2021.10.01.00.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 00:44:01 -0700 (PDT) Message-ID: <121bd5a47b78af306a887b5af05e17ebc9efea1d.camel@gmail.com> Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin From: Liliana Marie Prikler To: John Kehayias Date: Fri, 01 Oct 2021 09:44:00 +0200 In-Reply-To: <17bI1MfgO4sTMxxomP-QgHLKp0qztdZkexN8PYWs-md9elisnhlMWS8ObCnD3Uw1HFhbBgwbqf_SlO8YUB0oX5KEULytAdtf_3su5KstMyE=@protonmail.com> References: <33a689c52f5896213b480e01fc3498a26877b392.camel@gmail.com> <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com> <0ae4d2bfcce16f79680321817ac9e55a380dd0bd.camel@gmail.com> <17bI1MfgO4sTMxxomP-QgHLKp0qztdZkexN8PYWs-md9elisnhlMWS8ObCnD3Uw1HFhbBgwbqf_SlO8YUB0oX5KEULytAdtf_3su5KstMyE=@protonmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50789 Cc: 50789@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Am Donnerstag, den 30.09.2021, 20:13 +0000 schrieb John Kehayias: > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On Thursday, September 30th, 2021 at 4:00 PM, Liliana Marie Prikler > wrote: > > > As I stated initially you could hardcode the store path to > > syncthing-gtk in its stead but it's still a store path in the end. > > It must go stale by design. The only reasonable thing is to not > > install the file and instead give users the tools to do so on their > > own. > > > > For a medium to long-term solution, what would you advocate for? A > note in a package's description that they should see the manual or > cookbook for how to autostart this program if they want (since it > will show up in the preferences menu)? Of course, we'll need that > documentation first :) Maybe an example piece of code for using > Shepherd to start, or guix home (I still need to look at that)? > Perhaps this should be raised more generally in the devel list to be > consistent in Guix, since this won't be the only one. Long-term I'd advocate having an autostart service for putting .desktop files into the autostart folder, documented in the home-services section with the concrete example of syncthing-gtk perhaps there or in the Cookbook. We shouldn't change the package description, we don't do that for packages we need at the system level (within or without a service). > In the meantime, I'll try to find if getting the profile to bin path > is not too tricky, if not at least make it so the path it does use > points to syncthing-gtk and not .syncthing-gtk-real, since that is > incorrect in every way. The string you need to replace is "get_executable\\(\\)" in syncthing_gtk/uisettingsdialog.py Happy hacking From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 14:31:47 2022 Received: (at 50789) by debbugs.gnu.org; 5 Jan 2022 19:31:47 +0000 Received: from localhost ([127.0.0.1]:38856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5C0h-0002GL-0e for submit@debbugs.gnu.org; Wed, 05 Jan 2022 14:31:47 -0500 Received: from mail-4322.protonmail.ch ([185.70.43.22]:56091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5C0f-0002Ab-9t for 50789@debbugs.gnu.org; Wed, 05 Jan 2022 14:31:45 -0500 Date: Wed, 05 Jan 2022 19:31:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1641411098; bh=T6XPHAJizdKvPqGE+EuhmR6B0pGlznwsjiGDzPNSGfg=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=kTbpHeEGEzRlIZd7DqkjcMylFlv20QU1QqQVhO5jwAo/9bxqOy+MJ4nAoPaRagOGv knw/kmKXgfr+khNFYBMvnP8GapZX+am1pRj0R1G43F09rxYoYysffRGKKNxX4Uz3jD 8KUM1sTojvFbVu9dxxOANcP2xGnqd0gXxKRc9TDr62aCnvi+IlK1em9XZvh8efID6I 7zsFD4GAk6B7cQnisOdB1VY63gBte2KJSH84iuxLW2J1JLb+P4/L1yBEaBzvuRRulG y+CIbpvSdfIVnyv4x/vV9UghgJnVrVXGvsYkSSgKdaixfl05j+vycSxUvtVcXW4yAw 1hR6g+jee18Yw== To: Leo Famulari From: John Kehayias Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin Message-ID: In-Reply-To: <121bd5a47b78af306a887b5af05e17ebc9efea1d.camel@gmail.com> References: <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com> <0ae4d2bfcce16f79680321817ac9e55a380dd0bd.camel@gmail.com> <17bI1MfgO4sTMxxomP-QgHLKp0qztdZkexN8PYWs-md9elisnhlMWS8ObCnD3Uw1HFhbBgwbqf_SlO8YUB0oX5KEULytAdtf_3su5KstMyE=@protonmail.com> <121bd5a47b78af306a887b5af05e17ebc9efea1d.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50789 Cc: 50789@debbugs.gnu.org, Liliana Marie Prikler X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello again, I should have sent this here directly, but I just submitted a patch for thi= s issue. I opted to just use a plain exec line of "syncthing-gtk". Please s= ee https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53036 As we had discussed, it is not perfect, but it will work and won't break on= a store path change. I think the chance of conflicting/multiple versions o= f syncthing-gtk is rare and not worth worrying about over this not working = at all (syncthing-gtk is just a simple frontend to the web interface of the= real syncthing, after all). We can work on a more robust autostart in Guix= with guix home for a future system to wrangle all this better. Thanks, John From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 16:13:31 2022 Received: (at submit) by debbugs.gnu.org; 5 Jan 2022 21:13:31 +0000 Received: from localhost ([127.0.0.1]:39042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Db9-0007eD-M4 for submit@debbugs.gnu.org; Wed, 05 Jan 2022 16:13:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:46438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Db8-0007e6-83 for submit@debbugs.gnu.org; Wed, 05 Jan 2022 16:13:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Db8-0004vc-3S for bug-guix@gnu.org; Wed, 05 Jan 2022 16:13:30 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:53133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Db6-0005uH-MR for bug-guix@gnu.org; Wed, 05 Jan 2022 16:13:29 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5201E5C008F; Wed, 5 Jan 2022 16:13:28 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 05 Jan 2022 16:13:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=3c+XXcYxAbDS4OOuE1Gpp0sG we23N5J9jaV3Ohio+g4=; b=05LjxzhXXI5GIaxEOtmPVu+u44tjAkTQIKsovLXS BRQ1dRTYSIVzjPv7VQZVSE4bAwMNRPt/hlgqifL2rRNl1FP16iE2CUBoSgH2QhmB pgJrstSf8NnejFrvGByLEjh+puOIbuxxDE6a94xsJAxWDYtZ6vW484wEifBEntKt wno= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=3c+XXc YxAbDS4OOuE1Gpp0sGwe23N5J9jaV3Ohio+g4=; b=TxTwyBtuCwO/8cm84XnREZ EFvKjV5uwRfo1wJN3b/rOz13dT0jVRCSqlJcWja75sTIVkMajMm3vEqj68RGkark Fo7aOELhIgw0tHdrmlBWD0EVPnLmjPS90nS8AwICweS0rtiQU/Sx+Nqvt9OkAofH Kh1oWRw7lM+IbRZX3hwYcJc8Kk2LD42WqWWWLWN8FrYpKPuu6SlUGu8vj2tSCgBC smpaz5xi1iGU2mYDkUV0SEnXU1p3D7bD74VSRZBkgfBq/7r/tmJn+O3eQZRLrLFb HWLDtOqPNR+wrfibdLs/0f24/7mOtzMFHpLUqqFkGbN0sKcXouqoQfjQJBgPDvAA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudefjedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefnvghoucfh rghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrghtth gvrhhnpeeukeektdffvddtudegjeegtdevhfeufeeivdejiedtieegtdevjedvjeehffev gfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvg hosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Jan 2022 16:13:28 -0500 (EST) Date: Wed, 5 Jan 2022 16:13:26 -0500 From: Leo Famulari To: John Kehayias via Bug reports for GNU Guix Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=66.111.4.25; envelope-from=leo@famulari.name; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: 50789-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) On Fri, Sep 24, 2021 at 09:33:56PM +0000, John Kehayias via Bug reports for GNU Guix wrote: > 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 Fixed with commit c37559e81979232feee07aa1eb39faacb093c5ca From unknown Mon Jun 23 02:22:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Feb 2022 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator