Comment 13 for bug 223989

Revision history for this message
André Pirard (a.pirard) wrote : Re: [Bug 223989] Re: wine: incorrect "Browse C:\ Drive" launcher

On 2009-06-05 16:58, Johan Larsson wrote :
> I just upgraded to 9.04/Wine 1.1.22 from 8.04, and this "Browse C:\
> Drive" shortcut stopped working. Removing the tilde and following slash
> in the original command for the shortcut - "xdg-open ~/.wine/drive_c" -
> made it work again. Executing that command in the terminal brings up the
> folder correctly however, which I find strange - why is there a
> difference?
>
While executing the command from the command line or a script, the
shell (bash) expands the character ~ to the value in $HOME. As I
understand it, executing it from a launcher (.desktop) is not supposed
to do that but it did up to 8.04. Making the command sh -c "xdg-open
~.." would.
Note that, according to Wine HQ, that launcher feature is "Ubuntu's doing".
But I can't figure how then it is not removed when upgrading to a
release downloaded from HQ.