Hi, I install last wine version (20011016) and have problem (or I don't understand). I'm running wine without windows. My config in $HOME/.wine/config: [Drive C] "Path" = "/usr/share/wine-c" "Type" = "hd" "Label" = "MS-DOS" "Filesystem" = "win95" [wine] ... "path" = "c:\\windows;c:\\windows\\system;c:\\har\\sys;e:\\;f:\\" my working directory is "c:/har/sys" (KDE for instance) or "/usr/share/wine-c/har/sys" I tried both. Trying to run a exe program which need files in this directory abort this program with error file not found (I run it with wine --debugmsg +file) Same if i try to run it from my home directory. But if I go in /usr/share/wine-c/har/sys it worked. I read in a sample config file that there is option [programs] which allows you to run a per default program or to define a default directory. Not working too. So my question is: 1) why path is not taking care of my directories 2) is [programs] chapter out of date? 3) which solution I have (ok, to work from this directory) Thanks for any help -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.winehq.org/pipermail/wine-users/attachments/20011017/84167c32/attachment.html
On Wed, 17 Oct 2001 19:54:14 +0200, "daniel huhardeaux" <daniel.huhardeaux@motopol.pl> wrote:>C'est un message de format MIME en plusieurs parties.I wonder why people feel the need to brag about that... <snip>> >my working directory is "c:/har/sys" (KDE for instance) or >"/usr/share/wine-c/har/sys" I tried both. Trying to run a exe program >which need files in this directory abort this program with error file >not foundThat's because when you launch 'wine program.exe', the current directory is the directory where you are when wine is launched, not the directory where the .exe file is. In many cases in Windows, the current directory when an executable file is launched is the app directory itself (but this is a feature of the Windows explorer, not the operating system itself)>(I run it with wine --debugmsg +file)Do you think it will help Wine to find files ?> Same if i try to run it >from my home directory.Write a shell script to change the current directory to the one to need and launch wine after.>But if I go in /usr/share/wine-c/har/sys it >worked. I read in a sample config file that there is option [programs] >which allows you to run a per default program or to define a default >directory. Not working too.I don't see what you are talking about. Which sample file ?>So my question is: > >1) why path is not taking care of my directories >2) is [programs] chapter out of date?where is this programs chapter ?>3) which solution I have (ok, to work from this directory)to work from this directory. Gerard
On Wed, 17 Oct 2001, daniel huhardeaux wrote:> Hi, > > [Drive C] > "Path" = "/usr/share/wine-c" > "Type" = "hd" > "Label" = "MS-DOS" > "Filesystem" = "win95" > > [wine] > ... > "path" = "c:\\windows;c:\\windows\\system;c:\\har\\sys;e:\\;f:\\" > So my question is: > > 1) why path is not taking care of my directories"Path" is where Wine looks for executables if you or a program you run tries to launch one without a path name. Like the shell environment PATH=, which also confuses *nix newbies, it has nothing to do with file operations as such.> 2) is [programs] chapter out of date?No, but the sample config file where you found it is. Look in <wine>/documentation/samples/config. <wine> of course is the directory where you put the Wine source. If you used an rpm or some dam' thing, try looking around in /usr/[share]/doc/wine-*/samples/ or so.> 3) which solution I have (ok, to work from this directory)What is wrong with that?> > Thanks for any help >Lawson panic: detected rogue system administrator!! ---cut here
"gerard patel" <g.patel@wanadoo.fr.invalid> a ?crit dans le message news: 3bcde814.4999853@news.nerim.net...> >(I run it with wine --debugmsg +file) > > Do you think it will help Wine to find files ?No, but to find out whats happen, yes!> Write a shell script to change the current directory to > the one to need and launch wine after.Ok. But now imagine that my program has to work with files in d:\another\directory. Will it be able to find them or in this case I have to add this directory(ies) to wine path?> >But if I go in /usr/share/wine-c/har/sys it > >worked. I read in a sample config file that there is option [programs] > >which allows you to run a per default program or to define a default > >directory. Not working too. > > I don't see what you are talking about. Which sample file ?Sample file from corel wine But it seams that this is out of date. -- Daniel
On Fri, 19 Oct 2001 11:20:10 +0200, "daniel huhardeaux" <daniel.huhardeaux@tootai.com> wrote: <snip>> Ok. But now imagine that my program has to work with files in >d:\another\directory. Will it be able to find them or in this case I have> to >add this directory(ies) to wine path?No. If it can find these files under Windows, it should be able to find them with Wine. What I said only applies to files that are found because they are in the current directory. Gerard