GNOME Bugzilla – Bug 359377
patch to fix command-line quoting
Last modified: 2007-01-06 18:17:57 UTC
From what I can see, the new code in save.c to write out a desktop entry does not properly quote its arguments. I'll attach a patch to change this. Let me know what you think.
Created attachment 73967 [details] [review] patch to quote command line arguments
this is related to bug 351751 and should probably be fixed to fix that too
*** Bug 351751 has been marked as a duplicate of this bug. ***
I checked and this fixes bug #351751.
Just wondering out loud whether it'd be better or not to only quote the arguments when it's necessary...
I don't think it matters much, either in terms of performance or in terms of memory use. Most command lines are not very long.
Another reason not to check before quoting is that this splits the knowledge of what must be quoted into two different places.
Go ahead and commit this one too. Thanks
Fix checked in.