After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 96581 - g_spawn* do not expand ~/ => launchers don't understand ~/
g_spawn* do not expand ~/ => launchers don't understand ~/
Status: RESOLVED WONTFIX
Product: gnome-desktop
Classification: Core
Component: libgnome-desktop
2.0.x
Other Linux
: Normal minor
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-10-23 08:46 UTC by Christian Marillat
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Christian Marillat 2002-10-23 08:46:02 UTC
Hi,

http://bugs.debian.org/165989

I tried creating a launcher on the panel for a script lying in ~/bin.

Putting ~/bin/myscript in the "command" textbox of the launcher properties
should have worked. But clicking on the launcher gives an error message
saying failed to execute child process ... no such file or directory.

Giving the full path as /home/sameerds/bin/myscript works correctly.
Comment 1 Kjartan Maraas 2002-10-27 17:28:20 UTC
Still seeing this in 2.1.x
Comment 2 Vincent Untz 2003-01-08 20:29:40 UTC
This seems to be a glib bug. Moving there and changing the summary.
Comment 3 Vincent Untz 2003-01-08 20:30:56 UTC
*** Bug 96334 has been marked as a duplicate of this bug. ***
Comment 4 Havoc Pennington 2003-01-08 20:56:56 UTC
This is intentional, see the huge-ass security patch that KDE just
came out with. That's why g_spawn_ doesn't expand things.

You can make the shortcut something like "bash -c whatever"
or the particular app such as the panel could add a shell to the
command line. But g_spawn doesn't and shouldn't do it by default.
Comment 5 Vincent Untz 2003-01-09 15:09:23 UTC
So... Moving this one back to gnome-desktop.

Mark: glib doesn't expand things in g_spawn_, so do you think the
libgnome-desktop should do it ?
Comment 6 Vincent Untz 2003-01-09 15:10:16 UTC
I forgot to update the summary...
Comment 7 Gustavo Noronha (kov) 2004-04-16 17:30:22 UTC
Hi,

I'm taking a look at the debian bts bug reports about gnome-panel and found this
bug to be still there on gnome 2.6.0.

Will this be a wontfix or a patch for this would be welcome?

Thanks,
Comment 8 Mark McLoughlin 2004-04-20 09:03:50 UTC
I don't think doing tilde expansion for Exec in .desktop files is necessarily a
security hole, but I still don't like the idea of us doing it.

Also, the fact that this is very much an edge case makes me think this isn't
worth doing.