when i try to open "Browse C:\Drive" under wine, it gives me an error message.

Asked by John Paul Tan Galang

when i try to open "Browse C:\Drive" under wine, it gives me an error message.

Here is the error message:

"Unable to run the command specified. The file or folder file:///home/***********/Documents/.wine/dosdevices/c: does not exist."

How can I fix this? Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vihar (vmankov) said :
#1

Are you sure the path to the folder must go through "/Documents"? In my 9.04 it's
"/home/*/.wine/dosdevices/c:" and there is no ".wine" directory in Documents.

Revision history for this message
skierpage (skierpage) said :
#2

I have the same problem in Kubuntu 9.04. The .wine directory is in your home directory, yet the "Browse C:\Drive" menu item uses the non-existent path $HOME/Documents/.wine
The workaround is to simply navigate to $HOME/.wine/dosdevices/c: in a file manager like Dolphin.

The launchpad bug is Bug #223989 , with a few duplicates.
This problem is covered on the Wine forum in http://forum.winehq.org/viewtopic.php?p=17873

The desktop entry /usr/share/applications/wine-browsedrive.desktop has
  Exec=xdg-open .wine/dosdevices/c:

This is a relative path, but the behavior of the command `xdg-open` given a relative path is undocumented and unspecified. On Kubuntu it creates a file:/// URL relative to $HOME/Documents , and you get this bug.

The fix is to edit /usr/share/applications/wine-browsedrive.desktop (you will need to become root with sudo or such) and give the absolute path to the directory. I think the $HOME environment variable is better than the '~' those reports use for your home directory, thus change the line to
  Exec=xdg-open $HOME/.wine/dosdevices/c:

This worked for me.

Can you help with this problem?

Provide an answer of your own, or ask John Paul Tan Galang for more information if necessary.

To post a message you must log in.