unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Efraim Flashner <efraim@flashner.co.il>
Cc: 30228@debbugs.gnu.org
Subject: bug#30228: desktop files embedding full path
Date: Tue, 30 Jan 2018 12:00:02 +0100	[thread overview]
Message-ID: <87r2q7393h.fsf@gnu.org> (raw)
In-Reply-To: <20180129193946.GD17751@macbook41> (Efraim Flashner's message of "Mon, 29 Jan 2018 21:39:46 +0200")

Hello,

Efraim Flashner <efraim@flashner.co.il> skribis:

> On Wed, Jan 24, 2018 at 03:58:51PM +0100, Ludovic Courtès wrote:
>> Hi,
>> 
>> Efraim Flashner <efraim@flashner.co.il> skribis:
>> 
>> > the owncloud-client package includes an option to add a .desktop entry
>> > to $HOME/.configure/autostart/, which allows it to autostart when you
>> > log in to your desktop environment. Because the full path of the binary
>> > is in the .desktop file, it will always start THAT copy of
>> > owncloud-client, even if it is garbage collected.
>> 
>> I think you shouldn’t copy manually the .desktop file to
>> ~/.configure/autostart, precisely because of that.
>> 
>> Instead this should be done via in indirect GC root (as in “guix build
>> -r the-root owncloud-client”) or, ideally, by having it GuixSD-managed.
>> 
>> Thoughts?
>> 
>> Ludo’.
>
> I agree it shouldn't copy a .desktop file into .config/autostart/. In
> this case, the offending code is here¹, so there's not much that can be
> done about it. In mine I've changed the Exec line to
> /var/guix/profiles/per-user/... so it'll work as expected. In this case
> the code generates a desktop file on the fly, so modifying the .desktop
> file shipping with applications wouldn't even help here.
>
>
> ¹ https://github.com/owncloud/client/blob/f326bf371d690f1929f7c5c06aebf53c7255daa6/src/common/utility_unix.cpp#L73

What do you think should be done on the Guix side?  We could patch the
code above to not install the .desktop file in ~/.config, for instance.

Thanks,
Ludo’.

  reply	other threads:[~2018-01-30 11:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-23 11:00 bug#30228: desktop files embedding full path Efraim Flashner
2018-01-24 14:58 ` Ludovic Courtès
2018-01-29 19:39   ` Efraim Flashner
2018-01-30 11:00     ` Ludovic Courtès [this message]
2018-02-18 19:03       ` Efraim Flashner
2018-02-18 20:06         ` Ricardo Wurmus
2018-02-18 20:29           ` Efraim Flashner
2019-02-20  7:08 ` Efraim Flashner

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=87r2q7393h.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=30228@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    /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).