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@winehq.org ReportedBy: ocean04@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;