Cannot get UNC paths to work correctly

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Tom Evans

Cannot get UNC paths to work correctly

Post by Tom Evans »

Hi all

I wish to run 'Enterprise Architect' from Sparx Systems[1]. The
installer runs just fine, and the application installs OK. The main
issue is that the license key file is a shared resource - many users can
utilise the same license file (legitimately I might add!) at the same
time, so the license file is located on a SMB share. The key file itself
has encoded into itself what the location of the key file should be, and
this is encoded as a UNC path:
//razor/it/Enterprise Architect/sskeys.data

I have //razor/it mounted on /mnt/samba/razor/it . I have created the
appropriate structure under ~/.wine/dosdevices , as specified by 3.2.3
of the wine user guide:
$ tree ~/.wine/dosdevices/
/home/tom/.wine/dosdevices/
|-- c: -> ../drive_c
|-- unc
| `-- razor
| `-- it -> /mnt/samba/razor/it
`-- z: -> /


When I attempt to change directory in a 'standard' file selection box by
typing in '//razor/it/' (in either Enterprise Architect or Lotus Notes),
I am told 'Path does not exist'. Explicitly specifying the file name
(IE, no browsing involved) also does not work.

The share is mounted with the uid of the user running wine, and I can
create/modify/delete files from the shell just fine.

I'm running wine-0.9.59, on FreeBSD 7.0.

Thanks

Tom


[1] http://www.sparxsystems.com.au/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://www.winehq.org/pipermail/wine-us ... chment.pgp
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Cannot get UNC paths to work correctly

Post by vitamin »

Tom Evans wrote:Hi all

I wish to run 'Enterprise Architect' from Sparx Systems[1]. The
installer runs just fine, and the application installs OK. The main
issue is that the license key file is a shared resource - many users can
utilise the same license file (legitimately I might add!) at the same
time, so the license file is located on a SMB share. The key file itself
has encoded into itself what the location of the key file should be, and
this is encoded as a UNC path:
//razor/it/Enterprise Architect/sskeys.data
Can you map it as a drive instead? Looks like UNC paths don't work with all parts of Wine.
Dan Kegel

Cannot get UNC paths to work correctly

Post by Dan Kegel »

On Thu, Apr 10, 2008 at 3:53 AM, Tom Evans <[email protected]> wrote:
I wish to run 'Enterprise Architect' from Sparx Systems[1]. The
installer runs just fine, and the application installs OK. The main
issue is that the license key file is a shared resource - many users can
utilise the same license file (legitimately I might add!) at the same
time, so the license file is located on a SMB share. The key file itself
has encoded into itself what the location of the key file should be, and
this is encoded as a UNC path:
//razor/it/Enterprise Architect/sskeys.data
Ouch! I guess you really do need UNC support then.
I have //razor/it mounted on /mnt/samba/razor/it . I have created the
appropriate structure under ~/.wine/dosdevices , as specified by 3.2.3
of the wine user guide:
$ tree ~/.wine/dosdevices/
/home/tom/.wine/dosdevices/
|-- c: -> ../drive_c
|-- unc
| `-- razor
| `-- it -> /mnt/samba/razor/it
`-- z: -> /


When I attempt to change directory in a 'standard' file selection box by
typing in '//razor/it/' (in either Enterprise Architect or Lotus Notes),
I am told 'Path does not exist'. Explicitly specifying the file name
(IE, no browsing involved) also does not work.

The share is mounted with the uid of the user running wine, and I can
create/modify/delete files from the shell just fine.
I just verified your results and wrote up my test here:
http://bugs.winehq.org/show_bug.cgi?id=425
Wine does indeed support UNC paths like that internally,
but for some reason they aren't exposed well in things
like cmd and common dialogs. That seems like an important
thing to get working. Might be a bit late for 1.0, but we'll see.
- Dan
Locked