[Bug 27569] New: Shellexecute and local file

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Jun 23 02:03:41 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=27569

           Summary: Shellexecute and local file
           Product: Wine
           Version: 1.3.22
          Platform: x86
               URL: http://netikka.net/dev/shellexec.exe
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: -unknown
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: ocean04 at suomi24.fi


Application could not open local html file in default browser. 
Reason protocol (file:///) not supported. Works in Windows (also for type other
than html) 

Example: http://netikka.net/dev/shellexec.exe

Click and select some html file -> should open in default browser.

uses shellapi;

procedure TForm1.Button1Click(Sender: TObject);
var s: pchar;
begin
if opendialog1.execute then
begin
  s:=pchar('file:///'+opendialog1.FileName);
  ShellExecute(Handle, 'open', s, nil, nil, SW_SHOWNORMAL);
end;

-- 
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