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 96334 - doesn't expand ~ when running external programs
doesn't expand ~ when running external programs
Status: RESOLVED FIXED
Product: GnomeICU
Classification: Deprecated
Component: Preferences
0.98.x
Other other
: Normal normal
: 0.99
Assigned To: Vincent Untz
gnomeicu-maint
Depends on:
Blocks:
 
 
Reported: 2002-10-20 21:00 UTC by danel698
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description danel698 2002-10-20 21:00:51 UTC
I put "esdplay Message.wav" etc, with correct paths to the wav-files, to be
executed for some actions, like receiving files, but gnomeicu doesn't play
my sounds.
Comment 1 Olivier Crête 2002-10-21 00:09:38 UTC
which version are you using? Please try the latest cvs... if it doesnt
work, re-open.
Comment 2 danel698 2002-10-21 00:20:08 UTC
I'm using the latest CVS.
Comment 3 Vincent Untz 2002-10-25 13:04:49 UTC
Could you try putting something like 'gnome-terminal' to see if it's
not a problem with your sound ?
Comment 4 danel698 2002-10-25 13:35:06 UTC
I found out that the bug is actually that ~ are not expanded. It works
when I use full path names.
Comment 5 Vincent Untz 2003-01-08 20:30:57 UTC
I think it's a bug in glib. I already moved a similar bug there.

*** This bug has been marked as a duplicate of 96581 ***
Comment 6 Vincent Untz 2003-01-09 15:25:22 UTC
From bug #96581:
"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."

So reopening. If we want to support ~/, we need to expand it ourselves.
Comment 7 Vincent Untz 2003-01-12 00:56:31 UTC
I'm working on this. This should be done quickly.
Comment 8 Vincent Untz 2003-01-12 21:46:55 UTC
I have a preliminary patch which expands ~/. But it does not expand
things like ~login. I'd like to do it, but I don't know if there is an
easy way to do it...
Comment 9 Vincent Untz 2003-01-14 01:31:55 UTC
This is fixed in cvs. ~/ and ~login are expanded.