[Bug 27569] New: Shellexecute and local file
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(a)winehq.org ReportedBy: ocean04(a)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.
http://bugs.winehq.org/show_bug.cgi?id=27569 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase -- 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.
http://bugs.winehq.org/show_bug.cgi?id=27569 3vi1 <winehq.org(a)eternaldusk.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq.org(a)eternaldusk.com --- Comment #1 from 3vi1 <winehq.org(a)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:///'. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=27569 --- Comment #2 from ocean04(a)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. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=27569 ocean04(a)suomi24.fi changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |shell32 --- Comment #3 from ocean04(a)suomi24.fi 2011-10-22 12:26:49 CDT --- Still in 1.3.31 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=27569 François Gouget <fgouget(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget(a)codeweavers.com AssignedTo|wine-bugs(a)winehq.org |fgouget(a)codeweavers.com -- 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.
http://bugs.winehq.org/show_bug.cgi?id=27569 --- Comment #4 from François Gouget <fgouget(a)codeweavers.com> 2012-09-21 12:47:12 CDT --- I'm preparing patches so ShellExecute() handles 'file:' URLs. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=27569 François Gouget <fgouget(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #5 from François Gouget <fgouget(a)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(a)codeweavers.com> Date: Wed Oct 10 00:54:07 2012 +0200 shell32: Fix ShellExecute()'s handling of file URLs. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=27569 Mr Nobody <limited_choice(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |limited_choice(a)hotmail.com --- Comment #6 from Mr Nobody <limited_choice(a)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! -- 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.
http://bugs.winehq.org/show_bug.cgi?id=27569 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |53e4ddc399cef1f044fb25bdb19 | |a478ced6178d7 CC| |00cpxxx(a)gmail.com -- 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.
http://bugs.winehq.org/show_bug.cgi?id=27569 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> 2012-10-26 13:30:42 CDT --- Closing bugs fixed in 1.5.16. -- 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.
participants (1)
-
wine-bugs@winehq.org