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;
http://bugs.winehq.org/show_bug.cgi?id=27569
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
http://bugs.winehq.org/show_bug.cgi?id=27569
3vi1 winehq.org@eternaldusk.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq.org@eternaldusk.com
--- Comment #1 from 3vi1 winehq.org@eternaldusk.com 2011-06-24 19:11:59 CDT --- I also noticed this earlier today when I was looking at bug 22929.
My solution was to modify shlexec.c::SHELL_execute to rip off the prefix from the path, if it was present, and then just fall through to the normal code.
I'd submit the patch, but it was written quite hastily after a couple of glasses and I do not wish to lower my Julliard-rank. :) I ran into subsequent tougher problems with the app I was trying to fix, and don't intend to submit any patches until I can get it all working. I currently would not bet any money on that happening.
If anyone wants to submit a proper patch for this one item, please note that some Windows apps (like NClauncher) appear to send 'file:\' as the prefix instead of 'file:///'.
http://bugs.winehq.org/show_bug.cgi?id=27569
--- Comment #2 from ocean04@suomi24.fi 2011-06-28 06:35:45 CDT --- Remember also ignore case. (FILE:///)
I have updated sample exe, it's possible to test any prefix.
http://bugs.winehq.org/show_bug.cgi?id=27569
ocean04@suomi24.fi changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |shell32
--- Comment #3 from ocean04@suomi24.fi 2011-10-22 12:26:49 CDT --- Still in 1.3.31
http://bugs.winehq.org/show_bug.cgi?id=27569
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com AssignedTo|wine-bugs@winehq.org |fgouget@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=27569
--- Comment #4 from François Gouget fgouget@codeweavers.com 2012-09-21 12:47:12 CDT --- I'm preparing patches so ShellExecute() handles 'file:' URLs.
http://bugs.winehq.org/show_bug.cgi?id=27569
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #5 from François Gouget fgouget@codeweavers.com 2012-10-13 05:13:24 CDT --- The patch below is in Wine 1.5.15 and should fix this issue.
commit 53e4ddc399cef1f044fb25bdb19a478ced6178d7 Author: Francois Gouget fgouget@codeweavers.com Date: Wed Oct 10 00:54:07 2012 +0200
shell32: Fix ShellExecute()'s handling of file URLs.
http://bugs.winehq.org/show_bug.cgi?id=27569
Mr Nobody limited_choice@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |limited_choice@hotmail.com
--- Comment #6 from Mr Nobody limited_choice@hotmail.com 2012-10-17 07:47:55 CDT --- Yep... confirmed fixed wrt the 'GameFly' client when it comes to the installation of (a) downloaded game content ; Debian Wheezy (b2) and fresh wine-1.5.15 build...
Thanks Francois!
http://bugs.winehq.org/show_bug.cgi?id=27569
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |53e4ddc399cef1f044fb25bdb19 | |a478ced6178d7 CC| |00cpxxx@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=27569
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2012-10-26 13:30:42 CDT --- Closing bugs fixed in 1.5.16.