GNU bug report logs - #50789
syncthing-gtk creates autostart file with wrong bin

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: John Kehayias <john.kehayias@HIDDEN>; dated Fri, 24 Sep 2021 21:35:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 50789 <at> debbugs.gnu.org:


Received: (at 50789) by debbugs.gnu.org; 27 Sep 2021 21:23:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 27 17:23:46 2021
Received: from localhost ([127.0.0.1]:42997 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mUy6E-00051W-2G
	for submit <at> 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 <liliana.prikler@HIDDEN>) id 1mUy6C-00051J-9F
 for 50789 <at> 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 <at> 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@HIDDEN>
Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
To: John Kehayias <john.kehayias@HIDDEN>
Date: Mon, 27 Sep 2021 23:23:36 +0200
In-Reply-To: <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com>
References: <xULpkaOJk5Q64f48ce9xy1griAdpvLDSdgaTcyiZyHYK2xOZWIcYQG9VAQlmPfp2n4MDehVPHbUH4wjEebJVQ5C-UrF7RqOYVs7ucq5EECQ=@protonmail.com>
 <33a689c52f5896213b480e01fc3498a26877b392.camel@HIDDEN>
 <YU5cJ+yKFhnSKPVr@HIDDEN>
 <s4t48VbgNFk4NqUZBTNztiobk-4O3o5JR5yAY6e5r764ws_VairCTVbZ6B8ET9k2QhcIFLT68CHpLphYrArM7oRvEPJsIzitqhdyj3iAHoY=@protonmail.com>
 <e47cb526c42df7fedc22516bfced1c0a998ccc3f.camel@HIDDEN>
 <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 <at> debbugs.gnu.org, Leo Famulari <leo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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





Information forwarded to bug-guix@HIDDEN:
bug#50789; Package guix. Full text available.

Message received at 50789 <at> debbugs.gnu.org:


Received: (at 50789) by debbugs.gnu.org; 27 Sep 2021 19:04:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 27 15:04:59 2021
Received: from localhost ([127.0.0.1]:42880 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mUvvv-0001Ye-6f
	for submit <at> 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 <john.kehayias@HIDDEN>) id 1mUvvs-0001YP-Nn
 for 50789 <at> 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 <liliana.prikler@HIDDEN>
From: John Kehayias <john.kehayias@HIDDEN>
Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin
Message-ID: <6tbnn-VZChCdcqVZHxISlaQa_4plEwmzKlx8VjXPAR1Eb9br1nNHHryw7o0dgx2o8fVGVVtvNGVeZDiGasd1gqt41dwD7RjULWnR2trcUCE=@protonmail.com>
In-Reply-To: <e47cb526c42df7fedc22516bfced1c0a998ccc3f.camel@HIDDEN>
References: <xULpkaOJk5Q64f48ce9xy1griAdpvLDSdgaTcyiZyHYK2xOZWIcYQG9VAQlmPfp2n4MDehVPHbUH4wjEebJVQ5C-UrF7RqOYVs7ucq5EECQ=@protonmail.com>
 <33a689c52f5896213b480e01fc3498a26877b392.camel@HIDDEN>
 <YU5cJ+yKFhnSKPVr@HIDDEN>
 <s4t48VbgNFk4NqUZBTNztiobk-4O3o5JR5yAY6e5r764ws_VairCTVbZ6B8ET9k2QhcIFLT68CHpLphYrArM7oRvEPJsIzitqhdyj3iAHoY=@protonmail.com>
 <e47cb526c42df7fedc22516bfced1c0a998ccc3f.camel@HIDDEN>
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 <at> debbugs.gnu.org, Leo Famulari <leo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: John Kehayias <john.kehayias@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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




Information forwarded to bug-guix@HIDDEN:
bug#50789; Package guix. Full text available.

Message received at 50789 <at> debbugs.gnu.org:


Received: (at 50789) by debbugs.gnu.org; 25 Sep 2021 07:02:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 25 03:02:38 2021
Received: from localhost ([127.0.0.1]:60165 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mU1hm-0006G1-NY
	for submit <at> 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 <liliana.prikler@HIDDEN>) id 1mU1hi-0006Fh-Bi
 for 50789 <at> 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 <at> 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: <e47cb526c42df7fedc22516bfced1c0a998ccc3f.camel@HIDDEN>
Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
To: John Kehayias <john.kehayias@HIDDEN>, Leo Famulari
 <leo@HIDDEN>
Date: Sat, 25 Sep 2021 09:02:26 +0200
In-Reply-To: <s4t48VbgNFk4NqUZBTNztiobk-4O3o5JR5yAY6e5r764ws_VairCTVbZ6B8ET9k2QhcIFLT68CHpLphYrArM7oRvEPJsIzitqhdyj3iAHoY=@protonmail.com>
References: <xULpkaOJk5Q64f48ce9xy1griAdpvLDSdgaTcyiZyHYK2xOZWIcYQG9VAQlmPfp2n4MDehVPHbUH4wjEebJVQ5C-UrF7RqOYVs7ucq5EECQ=@protonmail.com>
 <33a689c52f5896213b480e01fc3498a26877b392.camel@HIDDEN>
 <YU5cJ+yKFhnSKPVr@HIDDEN>
 <s4t48VbgNFk4NqUZBTNztiobk-4O3o5JR5yAY6e5r764ws_VairCTVbZ6B8ET9k2QhcIFLT68CHpLphYrArM7oRvEPJsIzitqhdyj3iAHoY=@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 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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





Information forwarded to bug-guix@HIDDEN:
bug#50789; Package guix. Full text available.

Message received at 50789 <at> debbugs.gnu.org:


Received: (at 50789) by debbugs.gnu.org; 25 Sep 2021 00:45:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 24 20:45:46 2021
Received: from localhost ([127.0.0.1]:59604 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mTvp3-0007Fj-OB
	for submit <at> 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 <john.kehayias@HIDDEN>) id 1mTvp1-00076b-1G
 for 50789 <at> 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 <leo@HIDDEN>
From: John Kehayias <john.kehayias@HIDDEN>
Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin
Message-ID: <s4t48VbgNFk4NqUZBTNztiobk-4O3o5JR5yAY6e5r764ws_VairCTVbZ6B8ET9k2QhcIFLT68CHpLphYrArM7oRvEPJsIzitqhdyj3iAHoY=@protonmail.com>
In-Reply-To: <YU5cJ+yKFhnSKPVr@HIDDEN>
References: <xULpkaOJk5Q64f48ce9xy1griAdpvLDSdgaTcyiZyHYK2xOZWIcYQG9VAQlmPfp2n4MDehVPHbUH4wjEebJVQ5C-UrF7RqOYVs7ucq5EECQ=@protonmail.com>
 <33a689c52f5896213b480e01fc3498a26877b392.camel@HIDDEN>
 <YU5cJ+yKFhnSKPVr@HIDDEN>
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 <at> debbugs.gnu.org, Liliana Marie Prikler <liliana.prikler@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: John Kehayias <john.kehayias@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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





Information forwarded to bug-guix@HIDDEN:
bug#50789; Package guix. Full text available.

Message received at 50789 <at> debbugs.gnu.org:


Received: (at 50789) by debbugs.gnu.org; 24 Sep 2021 23:16:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 24 19:16:01 2021
Received: from localhost ([127.0.0.1]:59488 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mTuQD-0007uE-5E
	for submit <at> 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 <leo@HIDDEN>) id 1mTuQB-0007u0-0P
 for 50789 <at> 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: <xms:KFxOYXw2P0-tU4_npAqTbIaz8nKVFL0j9qzMVjbeNgC9_XLjpHA8fQ>
 <xme:KFxOYfS2I5OwZe1HL6Z-cAnPPnE4uipNZhuwJtb7dfbFiAAL7WBzM097c-XOsjSRS
 uLenIA3pAnmyAzhtA>
X-ME-Received: <xmr:KFxOYRV25PTcu-oQvlgvwGoZgbiMq1E_UZaIErYoDaB2sFYvVC9XfSHMor8YcQoxcaTbAQDu_CX0-cQfZ2JQI_3-Cw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudejvddgudelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefnvghoucfh
 rghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrghtth
 gvrhhnpeeukeektdffvddtudegjeegtdevhfeufeeivdejiedtieegtdevjedvjeehffev
 gfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvg
 hosehfrghmuhhlrghrihdrnhgrmhgv
X-ME-Proxy: <xmx:KFxOYRiRnN0PRRT1BUMktTfU1qim_KXVe0Uedix5Rv8jazlwLVoVZg>
 <xmx:KFxOYZAbadQUe4my7rMioMV5y7boQRK4JVhuCR7yCYxpjWjivWcCCA>
 <xmx:KFxOYaK4KqmE-fYxo6lKClhFR-9PN2C3icR5cwRIhM-IO5KHu1CAWw>
 <xmx:KVxOYW6nG8uIdolHtJpbfLhv8qD1vlcBpifdQTmCc_T1ngoRZ8KRuw>
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 <leo@HIDDEN>
To: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Subject: Re: bug#50789: syncthing-gtk creates autostart file with wrong bin
Message-ID: <YU5cJ+yKFhnSKPVr@HIDDEN>
References: <xULpkaOJk5Q64f48ce9xy1griAdpvLDSdgaTcyiZyHYK2xOZWIcYQG9VAQlmPfp2n4MDehVPHbUH4wjEebJVQ5C-UrF7RqOYVs7ucq5EECQ=@protonmail.com>
 <33a689c52f5896213b480e01fc3498a26877b392.camel@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <33a689c52f5896213b480e01fc3498a26877b392.camel@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 50789
Cc: John Kehayias <john.kehayias@HIDDEN>, 50789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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"?




Information forwarded to bug-guix@HIDDEN:
bug#50789; Package guix. Full text available.

Message received at 50789 <at> debbugs.gnu.org:


Received: (at 50789) by debbugs.gnu.org; 24 Sep 2021 22:56:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 24 18:56:05 2021
Received: from localhost ([127.0.0.1]:59464 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mTu6u-00058T-Vl
	for submit <at> 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 <liliana.prikler@HIDDEN>) id 1mTu6t-00057v-DF
 for 50789 <at> 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 <at> 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@HIDDEN>
Subject: Re: syncthing-gtk creates autostart file with wrong bin
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
To: John Kehayias <john.kehayias@HIDDEN>, 50789 <at> debbugs.gnu.org
Date: Sat, 25 Sep 2021 00:55:56 +0200
In-Reply-To: <xULpkaOJk5Q64f48ce9xy1griAdpvLDSdgaTcyiZyHYK2xOZWIcYQG9VAQlmPfp2n4MDehVPHbUH4wjEebJVQ5C-UrF7RqOYVs7ucq5EECQ=@protonmail.com>
References: <xULpkaOJk5Q64f48ce9xy1griAdpvLDSdgaTcyiZyHYK2xOZWIcYQG9VAQlmPfp2n4MDehVPHbUH4wjEebJVQ5C-UrF7RqOYVs7ucq5EECQ=@protonmail.com>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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





Information forwarded to bug-guix@HIDDEN:
bug#50789; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Sep 2021 21:34:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 24 17:34:10 2021
Received: from localhost ([127.0.0.1]:59359 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mTspe-0006e6-GE
	for submit <at> 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 <john.kehayias@HIDDEN>) id 1mTspc-0006dz-Oi
 for submit <at> 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 <john.kehayias@HIDDEN>)
 id 1mTspc-0000lZ-Hb
 for bug-guix@HIDDEN; 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 <john.kehayias@HIDDEN>)
 id 1mTspa-0008Ud-Ch
 for bug-guix@HIDDEN; 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@HIDDEN" <bug-guix@HIDDEN>
From: John Kehayias <john.kehayias@HIDDEN>
Subject: syncthing-gtk creates autostart file with wrong bin
Message-ID: <xULpkaOJk5Q64f48ce9xy1griAdpvLDSdgaTcyiZyHYK2xOZWIcYQG9VAQlmPfp2n4MDehVPHbUH4wjEebJVQ5C-UrF7RqOYVs7ucq5EECQ=@protonmail.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
Received-SPF: pass client-ip=188.165.51.139;
 envelope-from=john.kehayias@HIDDEN; 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: John Kehayias <john.kehayias@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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




Acknowledgement sent to John Kehayias <john.kehayias@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#50789; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 27 Sep 2021 21:30:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.