I am missing the idear behind how devices are suppose to work.
From the wiki it seems that the dosdevices/c: is use when installing a
program under wine. But how are dosdevices/c: related to my /mnt/windows? Are files first looked up in dosdevices/c: and the in /mnt/windows/ if not found?
The reason I ask is that icewind dale on /mnt/windows/ does a FindFirstFileA("C:/program...") which wine translates to dosdevice/c: and ofcause does not find anything. Am I suppose to make a link to where the program is installed, as if I had installed it with wine?
Peter
I would not point my WINE C: to an actual Windows installation C: drive - you're likely to end up with lots problems, if it works at all.
Run winecfg and create another drive letter pointing to /mnt/windows (let's say 'h:' for this example). Use that drive letter if you have to give your programs any paths. You can even create a batch script that executes when you start Windows that uses the 'assign' command to mirror h: to c: under Windows - in case an application stores full paths in an INI in the program directory.
What I've always done on my home system is to install Windows on a separate partition from Windows applications (and put data on a third partition). By doing this, it was pretty easy for me to use the exact same drive letters for the apps under both WINE and Windows.
-Jesse
Peter Berg Larsen wrote:
I am missing the idear behind how devices are suppose to work.
From the wiki it seems that the dosdevices/c: is use when installing a
program under wine. But how are dosdevices/c: related to my /mnt/windows? Are files first looked up in dosdevices/c: and the in /mnt/windows/ if not found?
The reason I ask is that icewind dale on /mnt/windows/ does a FindFirstFileA("C:/program...") which wine translates to dosdevice/c: and ofcause does not find anything. Am I suppose to make a link to where the program is installed, as if I had installed it with wine?
Peter
On 11/13/05, Peter Berg Larsen pebl@math.ku.dk wrote:
I am missing the idear behind how devices are suppose to work.
Wine User Guide section on that:
http://www.winehq.com/site/docs/wineusr-guide/config-wine-main#AEN265
If any of that documentation is unclear, let me know and I'll rewrite it to make it better.
-Brian
On Sun, 13 Nov 2005 19:33:46 +0100, Brian Vincent brian.vincent@gmail.com wrote:
On 11/13/05, Peter Berg Larsen pebl@math.ku.dk wrote:
I am missing the idear behind how devices are suppose to work.
Wine User Guide section on that:
http://www.winehq.com/site/docs/wineusr-guide/config-wine-main#AEN265
If any of that documentation is unclear, let me know and I'll rewrite it to make it better.
-Brian
I usually cd to ~/.wine/dosdevices
ln -s /mnt/dvd h:
to add my dvd burner to install stuff from.
bash-3.00#ls -ail total 8 410764 drwxr-xr-x 2 wino users 4096 Nov 13 18:36 . 410726 drwxr-xr-x 9 wino users 4096 Nov 13 19:21 .. 410923 lrwxrwxrwx 1 wino users 16 Nov 13 18:30 c: -> /home/wino/.wine 410924 lrwxrwxrwx 1 wino users 11 Nov 13 18:30 d: -> /home/wino/ 410928 lrwxrwxrwx 1 wino users 8 Nov 13 18:36 h: -> /mnt/dvd
Does the example make it clearer?
HTH
On Sun, 13 Nov 2005, Brian Vincent wrote:
I am missing the idear behind how devices are suppose to work.
If any of that documentation is unclear, let me know and I'll rewrite it to make it better.
I have read this, but is does not explain what the behavour is/suppose to be when there exists an /mnt/windows. dosdevices/c: always points to ../drive_c. So the doc does not answer the questions I asked:
But how are dosdevices/c: related to my /mnt/windows? Are files first looked up in dosdevices/c: and the in /mnt/windows/ if not found?
The reason I ask is that icewind dale on /mnt/windows/Program... does a FindFirstFileA("C:/program...") which wine translates to dosdevice/c: and ofcause does not find anything. Am I suppose to make a link to where the program is installed, as if I had installed it with wine? <<
When then program uses relative paths, wine translates it correctly to a z: path.
Peter
Sunday, November 13, 2005, 12:46:34 PM, Peter Berg Larsen wrote:
On Sun, 13 Nov 2005, Brian Vincent wrote:
I am missing the idear behind how devices are suppose to work.
If any of that documentation is unclear, let me know and I'll rewrite it to make it better.
I have read this, but is does not explain what the behavour is/suppose to be when there exists an /mnt/windows. dosdevices/c: always points to ../drive_c. So the doc does not answer the questions I asked:
But how are dosdevices/c: related to my /mnt/windows? Are files first
It doesn't. ~/.wine/dosdevices/c: points to what windows programs will see as a "c:" drive.
Please never point your c: drive to the real windows drive - that won't help wine at all but it might brake your windows beyond repair.
Vitaliy
On Sun, 13 Nov 2005, Vitaliy Margolen wrote:
Sunday, November 13, 2005, 12:46:34 PM, Peter Berg Larsen wrote:
On Sun, 13 Nov 2005, Brian Vincent wrote:
I am missing the idear behind how devices are suppose to work.
If any of that documentation is unclear, let me know and I'll rewrite it to make it better.
I have read this, but is does not explain what the behavour is/suppose to be when there exists an /mnt/windows. dosdevices/c: always points to ../drive_c. So the doc does not answer the questions I asked:
But how are dosdevices/c: related to my /mnt/windows? Are files first
It doesn't. ~/.wine/dosdevices/c: points to what windows programs will see as a "c:" drive.
Please never point your c: drive to the real windows drive - that won't help wine at all but it might brake your windows beyond repair.
Hmm, you are the third to answer me, but none so far have answered my questions.
Are files first looked up in dosdevices/c: and the in /mnt/windows/ if not found?
The reason I ask is that icewind dale on /mnt/windows/ does a FindFirstFileA("C:/program...") which wine translates to dosdevice/c: and ofcause does not find anything. Am I suppose to make a link to where the program is installed, as if I had installed it with wine? <<<
So I will try and refraise the questions:
How does wine differentiate whether I have installed a program under ~/.wine/drive_c/ or under /mnt/windows/, when it does a FindFirstFileA("c:/Program Files/")? In the first case it should translate it to ~/.wine/dosdevices/c:/Program Files/ and in the latter ~/.wine/dosdevices/z:/mnt/windows/Program Files/?
If I have a program that does this, should I then make a link from ~/.wine/drice_c/Program Files/foo to /mnt/windows/Program Files/foo? (This will work with this program, but I have newer read such recommendation).
Peter
Sunday, November 13, 2005, 3:04:14 PM, Peter Berg Larsen wrote:
On Sun, 13 Nov 2005, Vitaliy Margolen wrote:
Sunday, November 13, 2005, 12:46:34 PM, Peter Berg Larsen wrote:
On Sun, 13 Nov 2005, Brian Vincent wrote:
I am missing the idear behind how devices are suppose to work.
If any of that documentation is unclear, let me know and I'll rewrite it to make it better.
I have read this, but is does not explain what the behavour is/suppose to be when there exists an /mnt/windows. dosdevices/c: always points to ../drive_c. So the doc does not answer the questions I asked:
But how are dosdevices/c: related to my /mnt/windows? Are files first
It doesn't. ~/.wine/dosdevices/c: points to what windows programs will see as a "c:" drive.
Please never point your c: drive to the real windows drive - that won't help wine at all but it might brake your windows beyond repair.
Hmm, you are the third to answer me, but none so far have answered my questions.
That's you who can't read. I will repeat again: "~/.wine/dosdevices/c: points to what windows programs will see as a "c:" drive."
Please read it again (if that's what it takes). Then thing about "what does c: drive or any other drive means on windows".
The rest of your Linux file system, is like "unpartitioned" space for windows programs. Can install a program on windows to unpartitioned space (or partition that is not assigned a drive or reparse point)?
Vitaliy
On Sun, 13 Nov 2005, Vitaliy Margolen wrote:
That's you who can't read. I will repeat again: "~/.wine/dosdevices/c: points to what windows programs will see as a "c:" drive."
Please read it again (if that's what it takes). Then thing about "what does c: drive or any other drive means on windows".
I read it and it only answered one of my questions which wasnt enough.
On Sun, 13 Nov 2005, wino@piments.com wrote:
On Sun, 13 Nov 2005 23:04:14 +0100, Peter Berg Larsen pebl@math.ku.dk wrote:
Hmm, you are the third to answer me, but none so far have answered my questions.
That's because you have a preconceived idea of what the answer is supposed to be and you are not taking in what everyone is telling you.
Yes, that is half true. But had anyone answered all questions, like:
The reason I ask is that icewind dale on /mnt/windows/ does a FindFirstFileA("C:/program...") which wine translates to dosdevice/c: and ofcause does not find anything. Am I suppose to make a link to where the program is installed, as if I had installed it with wine? <<<
with; wine does not support running a program installed under /mnt/windows/ I would only had to ask once.
Peter
Sunday, November 13, 2005, 4:10:55 PM, Peter Berg Larsen wrote:
The reason I ask is that icewind dale on /mnt/windows/ does a FindFirstFileA("C:/program...") which wine translates to dosdevice/c: and ofcause does not find anything. Am I suppose to make a link to where the program is installed, as if I had installed it with wine?
Can you run a program that you installed on wine in windows?
You program looking for "c:\Program Files". That means "Program Files" directory on drive c: For wine (in default configuration) c: drive means ~/.wine/drive_c. Or more precisely where ~/.wine/dosdevices/c: points to.
with; wine does not support running a program installed under /mnt/windows/ I would only had to ask once.
Of corse it does. If you can make program look for it's files somewhere else. Because that's what you are doing.
And like I've mentioned before, please, don't run programs directly from your windows drive. That won't make it any better. But that might brake your windows.
Vitaliy
Le dimanche 13 novembre 2005 à 23:04 +0100, Peter Berg Larsen a écrit :
On Sun, 13 Nov 2005, Vitaliy Margolen wrote:
Sunday, November 13, 2005, 12:46:34 PM, Peter Berg Larsen wrote:
On Sun, 13 Nov 2005, Brian Vincent wrote:
I am missing the idear behind how devices are suppose to work.
If any of that documentation is unclear, let me know and I'll rewrite it to make it better.
I have read this, but is does not explain what the behavour is/suppose to be when there exists an /mnt/windows. dosdevices/c: always points to ../drive_c. So the doc does not answer the questions I asked:
But how are dosdevices/c: related to my /mnt/windows? Are files first
It doesn't. ~/.wine/dosdevices/c: points to what windows programs will see as a "c:" drive.
Please never point your c: drive to the real windows drive - that won't help wine at all but it might brake your windows beyond repair.
Hmm, you are the third to answer me, but none so far have answered my questions.
Are files first looked up in dosdevices/c: and the in /mnt/windows/ if not found?
The reason I ask is that icewind dale on /mnt/windows/ does a FindFirstFileA("C:/program...") which wine translates to dosdevice/c: and ofcause does not find anything. Am I suppose to make a link to where the program is installed, as if I had installed it with wine? <<<
So I will try and refraise the questions:
How does wine differentiate whether I have installed a program under ~/.wine/drive_c/ or under /mnt/windows/, when it does a FindFirstFileA("c:/Program Files/")? In the first case it should translate it to ~/.wine/dosdevices/c:/Program Files/ and in the latter ~/.wine/dosdevices/z:/mnt/windows/Program Files/?
If it searches for c:\program files then it will search it in ~/.wine/dosdevices/c:/Program Files/. ~/.wine/dosdevices/c: can then point to anything you decided.
If I have a program that does this, should I then make a link from ~/.wine/drice_c/Program Files/foo to /mnt/windows/Program Files/foo? (This will work with this program, but I have newer read such recommendation).
Yes you could do that.
Hi,
Hmm, you are the third to answer me, but none so far have answered my questions.
Are files first looked up in dosdevices/c: and the in /mnt/windows/ if not found?
The reason I ask is that icewind dale on /mnt/windows/ does a FindFirstFileA("C:/program...") which wine translates to dosdevice/c: and ofcause does not find anything. Am I suppose to make a link to where the program is installed, as if I had installed it with wine? <<<
Wine uses a subdirectory under your home directory as its "C:" drive. So if you install Icewind Dale (or anything else) under wine, it will copy its files to "~/.wine/dosdevices/c:/Program Files/...". When you start the program and it does the FindFirstA("C:\Program Files..."), wine correctly translates that back to "~/.wine/dosdevices/c:/Program Files/..." for you, so everything is fine.
If you don't want to install the game in wine but rather use an existing Windows installation you should either copy and/or link to your existing installation, but bear in mind that this might - as others have already pointed out - break your installation on windows for some reason or another and is generally not suggested.
So I will try and refraise the questions:
How does wine differentiate whether I have installed a program under ~/.wine/drive_c/ or under /mnt/windows/, when it does a FindFirstFileA("c:/Program Files/")? In the first case it should translate it to ~/.wine/dosdevices/c:/Program Files/ and in the latter ~/.wine/dosdevices/z:/mnt/windows/Program Files/?
Wine cannot guess where your existing windows partition is mounted.
If I have a program that does this, should I then make a link from ~/.wine/drice_c/Program Files/foo to /mnt/windows/Program Files/foo? (This will work with this program, but I have newer read such recommendation).
This is one solution if you don't want to install the game under wine. It should work for everything that doesn't change the registry or install system-wide DLLs. Icewind Dale (and pretty much all other Infinity Engine based games) should work with that kludge.
--Michael
P.S.: If you're a developer, you could check out the gemrb project at Sourceforge, which tries to create an open-source crossplatform Infinity Engine implementation, which one day will run Icewind Dale (and other games) natively on Linux ;-)
On Sun, 13 Nov 2005 23:04:14 +0100, Peter Berg Larsen pebl@math.ku.dk wrote:
Hmm, you are the third to answer me, but none so far have answered my questions.
That's because you have a preconceived idea of what the answer is supposed to be and you are not taking in what everyone is telling you.
dosdevices/c: has NOTHING to do with your true windows installation, it would be just the same if there was no windows installation on that machine.
Wine is not designed to run software installed on a windows operating system from Linux. You need to install your software using wine under linux to somewhere under .wine/drive_c (or whatever you chose to call it)
Then any reference in the software to C:/Program files/blah blah/hick will point to something meaningful.
HTH