From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ELLBF5MXVmFcJAEAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 22:01:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uP+JE5MXVmEbEwAA1q6Kng (envelope-from ) for ; Thu, 30 Sep 2021 20:01:23 +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 86A4C2A983 for ; Thu, 30 Sep 2021 22:01:22 +0200 (CEST) Received: from localhost ([::1]:34830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mW2F6-0003sj-EJ for larch@yhetil.org; Thu, 30 Sep 2021 16:01:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW2Eo-0003sa-9V for bug-guix@gnu.org; Thu, 30 Sep 2021 16:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mW2En-0002pP-WF for bug-guix@gnu.org; Thu, 30 Sep 2021 16:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mW2En-0004W0-Rf for bug-guix@gnu.org; Thu, 30 Sep 2021 16:01:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50789: syncthing-gtk creates autostart file with wrong bin Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 30 Sep 2021 20:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50789 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: John Kehayias Received: via spool by 50789-submit@debbugs.gnu.org id=B50789.163303205717338 (code B ref 50789); Thu, 30 Sep 2021 20:01:01 +0000 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: From: Liliana Marie Prikler 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-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: , Cc: 50789@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633032083; h=from:from:sender:sender: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=t5xaQ1INVTFQ4sSnYiPQZiA1iGjTE8u7q6vcO031EUo=; b=uk19sFUEicOUHVMy7EjDqTYfEYVePrxSh3XvMWQRNGRLTmuJIY5625RBL0BYjZljld/kOV Ru75gvLTJyalCJQuIBXY9/37E24F/hcuuySHj8/JUszP1FW8rYzBkIuNmnW1zzXlQZ49M5 Jt5n6/Af/LcDmG5Wyk7Kah7DQiXiWftQa8+D5Z/lOmYWzzFXKtJPRT9Gz7kI+a2bxP05nW VmSYSjnZIgfJyR0/J3U9pWK4DMip6Gw/DOYNZbrC73EruJ8Oy/jXo7kNiVT/i0URbzdXO0 60eBT1qS0py3E+tvh3T2FWxrT0lyDOooZx0NUmx60ukwDoavSzT3E6Q3d8YeiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633032083; a=rsa-sha256; cv=none; b=MoWslRjznTEash+pxJiorfYljH7WImmpHEBhre4TccJUuBadPLolbq9YF9r9IRqImsGLYs tagNiCZC6DKZm+tWb/JFjmQOQSLGhNdJpVqQG/l3HrL1drWm4OqLZD4IYKrW6EOYnUEdsG 1IQ2AEKHL/xA3XXL63MyIfCR0FtADfm0epQO1YZ4Huxfqf3O6lgNj9Rfy0p1Fl7SIy6uSq RERMervdQBn0AIpnIY3EP6dUpEL6LYi0GJYyAKSeQY/UykA5TNftxUFJS0OEM2pBrg3Wip vasbhsN6Opud7BrGi3lwXnMCA8OnbZgMJ3B3djv8oMbkNBt08A+TFul06pGKQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MEZqBsoL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MEZqBsoL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 86A4C2A983 X-Spam-Score: -1.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: G5ErJkD3JaVo 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