Comment 14 for bug 223989

Revision history for this message
skierpage (skierpage) wrote : Re: wine: incorrect "Browse C:\ Drive" launcher

Please reopen this bug, the fix breaks Kubuntu 9.04 as reported in Ubuntu question #70652.

The fix in comment #10
 - remove $HOME in Exec=xdg-open .wine/dosdevices/c:
leads Kubuntu to fail with
 The file or folder file:///home/<MyUserName>/Documents/.wine/dosdevices/c: does not exist.

The behavior of xdg-open given a relative path is unspecified. Kubuntu winds up opening KUrl("file:///home/<MyUserName>/Documents/.wine/dosdevices/c:") -- note "Documents" in the path -- and thus fails.

Reverting /usr/share/applications/wine-browsedrive.desktop to
 Exec=xdg-open $HOME/.wine/dosdevices/c:
fixes Kubuntu. That feels like the right fix to me but it sounds as if it will once again break Gnome desktops.

The Portland project XDG spec at freedesktop.org don't say what shell expansions should work or what the final path should be for a relative path in Exec=xdg-open; the XDG spec has to specify one or the other in order to determine the right fix for this bug.