[Bug 19356] some features for winepath to make it better work in scripts

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jul 18 05:36:20 CDT 2009


--- Comment #1 from Alexandre Julliard <julliard at winehq.org>  2009-07-18 05:36:20 ---
(In reply to comment #0)

> first thing:
> If u have the DOS path C:\nop and convert it to unix style u get
> /root/.wine/dosdevices/c:/nop but for some scripts you need the real mounted
> path that would be in my case /mnt/C/nop. To get this done with bash i must cut
> out the /root/.wine/dosdevices/c: make an REALPATH=$(df
> /root/.wine/dosdevices/c: | cut -d ' ' -f 25) (REALPATH is than /mnt/C) and
> combine it with the /nop that takes much time in bash if winepath can do this
> by it self that would be a giant speed up, bound this to an option like -r
> --realmountedpath or so would be great.

readlink(1) is your friend.

> secound thing:
> If a file lies on the dos dirve G:\file.nfo and the drive is assigned with
> winecfg to ../dosdevices/k: winepath outputs ../dosdevices/g:/file.nfo witch
> results to that the file cannot be found because its on
> ../dosdevices/k:/file.nfo. So you must have all drives exactly assigned like
> the would appear on real DOS (G:\ = ../dosdevices/g:). This can be avoided with
> checking the wine config, a option like -c --checkwinecfg would do it.

There's no wine config, it's all in the symlinks. Making a drive symlink
pointing to another drive is not a good idea anyway.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list