GNOME Bugzilla – Bug 96334
doesn't expand ~ when running external programs
Last modified: 2004-12-22 21:47:04 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.
which version are you using? Please try the latest cvs... if it doesnt work, re-open.
I'm using the latest CVS.
Could you try putting something like 'gnome-terminal' to see if it's not a problem with your sound ?
I found out that the bug is actually that ~ are not expanded. It works when I use full path names.
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 ***
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.
I'm working on this. This should be done quickly.
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...
This is fixed in cvs. ~/ and ~login are expanded.