unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: John Kehayias via Bug reports for GNU Guix <bug-guix@gnu.org>
To: Leo Famulari <leo@famulari.name>
Cc: 50789@debbugs.gnu.org, Liliana Marie Prikler <liliana.prikler@gmail.com>
Subject: bug#50789: syncthing-gtk creates autostart file with wrong bin
Date: Sat, 25 Sep 2021 00:45:33 +0000	[thread overview]
Message-ID: <s4t48VbgNFk4NqUZBTNztiobk-4O3o5JR5yAY6e5r764ws_VairCTVbZ6B8ET9k2QhcIFLT68CHpLphYrArM7oRvEPJsIzitqhdyj3iAHoY=@protonmail.com> (raw)
In-Reply-To: <YU5cJ+yKFhnSKPVr@jasmine.lan>

Hi Leo, Liliana, et al,

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

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 files 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/store link). So this is perhaps more common when programs create files like this.

I think there are a few possibilities and assumptions that go with them.

1. Rely on $PATH so that it can just be Exec=syncthing-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 different 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 Though I guess this happens at install. Perhaps the Python code can be patched to make something like this, based on its runtime path.

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.

John





  reply	other threads:[~2021-09-25  0:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24 21:33 bug#50789: syncthing-gtk creates autostart file with wrong bin John Kehayias via Bug reports for GNU Guix
2021-09-24 22:55 ` Liliana Marie Prikler
2021-09-24 23:15   ` Leo Famulari
2021-09-25  0:45     ` John Kehayias via Bug reports for GNU Guix [this message]
2021-09-25  7:02       ` Liliana Marie Prikler
2021-09-27 19:04         ` John Kehayias via Bug reports for GNU Guix
2021-09-27 21:23           ` Liliana Marie Prikler
2021-09-30 19:29             ` John Kehayias via Bug reports for GNU Guix
2021-09-30 20:00               ` Liliana Marie Prikler
2021-09-30 20:13                 ` John Kehayias via Bug reports for GNU Guix
2021-10-01  7:44                   ` Liliana Marie Prikler
2022-01-05 19:31                     ` John Kehayias via Bug reports for GNU Guix
2022-01-05 21:13 ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='s4t48VbgNFk4NqUZBTNztiobk-4O3o5JR5yAY6e5r764ws_VairCTVbZ6B8ET9k2QhcIFLT68CHpLphYrArM7oRvEPJsIzitqhdyj3iAHoY=@protonmail.com' \
    --to=bug-guix@gnu.org \
    --cc=50789@debbugs.gnu.org \
    --cc=john.kehayias@protonmail.com \
    --cc=leo@famulari.name \
    --cc=liliana.prikler@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).