From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yOrUHYUQVmHxGAEAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 21:31:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4AiUGYUQVmGvfwAA1q6Kng (envelope-from ) for ; Thu, 30 Sep 2021 19:31:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9B86E8B74 for ; Thu, 30 Sep 2021 21:31:16 +0200 (CEST) Received: from localhost ([::1]:50758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mW1ly-00029V-Uc for larch@yhetil.org; Thu, 30 Sep 2021 15:31:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW1ko-00026o-Rd for bug-guix@gnu.org; Thu, 30 Sep 2021 15:30:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mW1ko-000227-JK for bug-guix@gnu.org; Thu, 30 Sep 2021 15:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mW1ko-0003iT-Ev for bug-guix@gnu.org; Thu, 30 Sep 2021 15:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50789: syncthing-gtk creates autostart file with wrong bin Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 30 Sep 2021 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50789 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler Cc: 50789@debbugs.gnu.org, Leo Famulari Received: via spool by 50789-submit@debbugs.gnu.org id=B50789.163303020014256 (code B ref 50789); Thu, 30 Sep 2021 19:30:02 +0000 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= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias From: John Kehayias via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633030276; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=P1gkNFOcwxX79MbPEr990Mq1xGSiwOV39Rpgtxqh9NI=; b=j5Xp1z2/sL8OyzO3iABku468be4E6JL1L1nhGKQR3Rn7PLsVGtI9gLMweYtF3S0TVgIJ0D UJOAe79rPAWEqgfj1yDQqvVdtSdj2T+kNVt22/IWnwmj0xPOEdkPzM8pnlPhlWm3vpo9lp w3h7QQaMm7SYJQd9/AEqyVlmBc+aZJdEdO3890W5N63SVdzgMwvI5y8RnCGK7esRqiW371 9Ujc96M61a2GJmwC5zbBc2ROX9hG9ncTLrysi0UYhydepce/+qIc5pX/qK2cpGB9X5I/ob bZG3Zx9IBxnekUYDABbOO94HQEvyUE3sfSxIq1mGFwTy9DJr3g58LHU3fuRxaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633030276; a=rsa-sha256; cv=none; b=bWVLt06yinuVkTL4aNviN0Eqro1jDlfz+1ZmUjimIKDsgMjv5gRYcDrTP1MHjqEmxR4KSN 4O0Rz5wg1ZLtvma/MurXE4rFo0FvscrpTRqjYRWu6/z98uFJNP1XX45f7fQLehhk1ikGvO e3YCpVa0ICj5kBrpQBckcZID9DPVLLfUv9Sah13lI3AWUGpdtO3m11LYPv+XJID9UhyXm8 Bjoc3OsCYlWwbG9i+5nfwvoQ6u8wWRgjXSAx5KubiUQJRy/8/6sHTQG//NwZIryybV3ZgL HJq5TO5mr4Woimgedrj7fZEmsn34JGEecO+7SUm2uI7Q6fpsRn5eJOiM60YiIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=DRq3czHa; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=DRq3czHa; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 9B86E8B74 X-Spam-Score: -2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1SmfnoCEBEK8 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