* Is using xdg-utils post-install safe?
@ 2019-10-28 15:18 Jesse Gibbons
2019-10-28 19:12 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 3+ messages in thread
From: Jesse Gibbons @ 2019-10-28 15:18 UTC (permalink / raw)
To: guix-devel mailing list
I'm working on packaging The Powder Toy. When it first starts, it asks if
the user wants to install it. 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?
--
-Jesse
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is using xdg-utils post-install safe?
2019-10-28 15:18 Is using xdg-utils post-install safe? Jesse Gibbons
@ 2019-10-28 19:12 ` Tobias Geerinckx-Rice
2019-10-29 0:09 ` Jesse Gibbons
0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-10-28 19:12 UTC (permalink / raw)
To: Jesse Gibbons; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is using xdg-utils post-install safe?
2019-10-28 19:12 ` Tobias Geerinckx-Rice
@ 2019-10-29 0:09 ` Jesse Gibbons
0 siblings, 0 replies; 3+ messages in thread
From: Jesse Gibbons @ 2019-10-29 0:09 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: guix-devel
On Mon, 2019-10-28 at 20:12 +0100, Tobias Geerinckx-Rice wrote:
> 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>
> ;.
Thanks for looking it up for me. This will save me some grepping.
>
> 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.
>
I can confirm that is an accurate summary of what it does. Letting it stay
would be an error waiting to happen.
> > 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?
If a user decides to build from source, installing the information on first
launch would allow the user to "install" it without moving any binary. It's
just speculation, but this could be the theory behind this questionable
design choice.
> Do you see how this would be helpful compared to doing things
> the normally?
I cannot think of any advantage the average user running guix would gain in
leaving it in. If anything it would make the first launch a little more
complex because there would be no icon until then.
>
> 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.
I agree. I'll work on it now and send the patch when everything works.
>
> Kind regards,
>
> T G-R
--
-Jesse
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-29 0:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-28 15:18 Is using xdg-utils post-install safe? Jesse Gibbons
2019-10-28 19:12 ` Tobias Geerinckx-Rice
2019-10-29 0:09 ` Jesse Gibbons
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.