[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: KERNEL: force copying of DOS-style path into argv[0] of PE
From: Jesse Allen <the3dfxdude () gmail ! com>
Date: 2005-10-31 23:46:06
Message-ID: 530468570510311546g3384c6e4kfb0f04015c6f189b () mail ! gmail ! com
[Download RAW message or body]
On 10/31/05, Alex Villacís Lasso <a_villacis@palosanto.com> wrote:
> Jesse Allen wrote:
> >
> >
> >This is a quite interesting theory. So I went ahead and tried to
> >launch LogicWorks with a "windows" method in wine, and well, I've
> >failed so far with wine's ProgMan.exe. The progman crashes anyway
> >I've tried.
> >
> >So I boot to windows and try logicworks from cmd.exe. Indeed, I hit
> >the same bug as in wine. So what we have are programs that expect a
> >certain behavior and the command line doesn't do it. Bad design.
> >
> Hmmm... this raises doubts on whether the behavior should be implemented
> at all. What version of Windows are you using?
WinXP
> Does your version supply
> a COMMAND.COM (in WinXP, it is at c:\windows\system32)? Have you tried
> running your program from COMMAND.COM? I would guess that COMMAND.COM
> supplies a fully qualified path to the executable file (as in MS-DOS and
> Windows 9x), but WinNT/WinXP do not when CMD.EXE is used (???).
I tried command.com and it does not provide a full path in argv[0], I
believe. I'm gonna write a test program.
> Then,
> explorer.exe supplies the fully qualified path at all times - that is
> why the programs do not crash when started from the shortcuts.
>
> So, what should be the policy in Wine? Should Wine supply the qualified
> name at all (I still think it should)? Mr. Julliard sent a patch
> proposal that conditionally sets the name. I will try it at home and
> report on it tomorrow.
>
I think 'wine' should launch like explorer by default, and wine's cmd
should launch like window's cmd. A winecfg per-app setting could work
too but I don't like that as much.
Jesse
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic