guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is using xdg-utils post-install safe?


From: Tobias Geerinckx-Rice
Subject: Re: Is using xdg-utils post-install safe?
Date: Mon, 28 Oct 2019 20:12:34 +0100

Jesse,

Jesse Gibbons 写道:
I'm working on packaging The Powder Toy. When it first starts, it asks if
the user wants to install it.

‘Install’?  That doesn't sound good.  :-)

<https://github.com/The-Powder-Toy/The-Powder-Toy/blob/master/src/client/Client.cpp#L366>.

From my reading, that will embed a store file name into a .desktop file somewhere in (each) user's $HOME, which will break sooner or later.

When the user clicks confirm, it tries to use
xdg-desktop-menu, xdg-mime, and xdg-icon-resource.
Is this a safe behavior with guix, or should I try to patch it out? If it is safe, should I bother trying to install a desktop icon with guix if
the program will do that itself?

Even if I'm wrong and it's ‘safe’, I don't see how this behaviour is desirable. What is upstream trying to accomplish here? Do you see how this would be helpful compared to doing things the normally?

If not, I think we have a responsibility towards our users to install a copy of the above .desktop file and patch out any xdg-desktop-menu calls. Same for MIME types and icons.

Kind regards,

T G-R

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]