Winetricks / winetricks

Winetricks is an easy way to work around problems in Wine
GNU Lesser General Public License v2.1
2.83k stars 407 forks source link

Firefox File Browsing? #297

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1.One can tell what trick is used to install the firefox. 
2.Or if a java script is used in firefox and the script runs a program, I want 
to know where in the harddrive (path of the directory) the script is executed. 

What is the expected output? What do you see instead?
Expected to see a program run. I see nothing instead.

What version of the product are you using? On what operating system?
firefox 3.6, Centos 6.3

Please provide any additional information below.

Okay, so this can be a bit complicated so bear with me.
I am trying to play an Korean online game called fortress (fortress.x2game.com) 
via wine.
In order to play this game, I first have to go to their website and log in and 
then click a "game start" button.
The website uses some shockwave flash files. So, I installed flash and firefox 
3.6 using winetricks.
When I press game start button, java script calls a program called Launcher.exe 
on my hard drive. I also have to install the game and I did that successfully.
So, when I pressed the button on my firefox, however, it did nothing.
I did some analysis of the source of the webpage.
Here is the code of their index.asp. I will post only the relevant codes.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
...
<script type="text/javascript">
<!--
function TnStartLauncher(LauncherGid){
    $.ajax({ 
       type: "POST", 
       url: "/common/fort_shutdown.asp", 
       data:"",
       success: function(msg){ 
            if(msg =="true"){ 
                alert("청소년의 인터넷게임 중독을 예방하고 건강한 성장을 지원하기 위해서\n16세 미만 청소년은 오전 0시부터 6시까지 심야에 6시간 동안 이용하실 수 없습니다");
                return;
            }else
                id=Launcher.Run('\Launcher\\Launcher.exe '+LauncherGid);
                return;
            }
    });
}
//-->
</script>
...
<div class="start"><script 
language="javascript">__ShowFlash('/swf/start_btn_cover.swf','207px','159px','hi
gh','menuFlash','transparent','noscale');</script></div>
...
</html>

The Korean is basically saying that they can't let kids under 18 to play this 
game during 12am to 6am.        
The main point is that when I click start_btn_cover.swf, it starts javascript, 
and then this script calls file called gamelauncher.exe
I confirmed that there is a Launcher.exe in the installation folder but 
starting it from their webpage fails.
A picture is worth thousands words.
I also attach the website for you to see. The Gamestart.swf is located in the 
left.

Original issue reported on code.google.com by soohyun2...@gmail.com on 11 Jan 2013 at 9:48

Attachments:

GoogleCodeExporter commented 9 years ago
Did you install Firefox into the same wineprefix?
You might need
  winetricks --no-isolate firefox36

Original comment by daniel.r...@gmail.com on 11 Jan 2013 at 2:05

GoogleCodeExporter commented 9 years ago
I isolation installed firefox36 on top of previous firefox36. I hope that is 
negligible.
However, I also have ie7 installed on my wine and this is causing conflict 
problem.
You know they always ask for users to make them the "Default Browser"
In wine, firefox36 dislike becoming a default browser.
Ie7 can't do flash.

Any suggestions?

Original comment by soohyun2...@gmail.com on 12 Jan 2013 at 9:54

GoogleCodeExporter commented 9 years ago
IIRC Wine doesn't really support the default browser setting, 
you'll probably keep getting that prompt always.
There is a way to turn off that prompt
( see http://portableapps.com/support/firefox_portable#modifications )
but I've never done it.

Original comment by daniel.r...@gmail.com on 12 Jan 2013 at 11:14