@@ -68,7 +68,7 @@ def launch_browser(self, profile):
68
68
69
69
self ._start_from_profile_path (self .profile .path )
70
70
self ._wait_until_connectable ()
71
-
71
+
72
72
def kill (self ):
73
73
"""Kill the browser.
74
74
@@ -83,14 +83,10 @@ def _start_from_profile_path(self, path):
83
83
84
84
if platform .system ().lower () == 'linux' :
85
85
self ._modify_link_library_path ()
86
- command = [self ._start_cmd , "-silent " ]
86
+ command = [self ._start_cmd , "-foreground " ]
87
87
if self .command_line is not None :
88
88
for cli in self .command_line :
89
89
command .append (cli )
90
-
91
- Popen (command , stdout = self ._log_file , stderr = STDOUT ,
92
- env = self ._firefox_env ).communicate ()
93
- command [1 ] = '-foreground'
94
90
self .process = Popen (
95
91
command , stdout = self ._log_file , stderr = STDOUT ,
96
92
env = self ._firefox_env )
@@ -141,7 +137,7 @@ def _find_exe_in_registry(self):
141
137
142
138
if not command :
143
139
return ""
144
-
140
+
145
141
return shlex .split (command )[0 ]
146
142
147
143
def _get_firefox_start_cmd (self ):
@@ -150,7 +146,7 @@ def _get_firefox_start_cmd(self):
150
146
if platform .system () == "Darwin" :
151
147
start_cmd = ("/Applications/Firefox.app/Contents/MacOS/firefox-bin" )
152
148
elif platform .system () == "Windows" :
153
- start_cmd = (self ._find_exe_in_registry () or
149
+ start_cmd = (self ._find_exe_in_registry () or
154
150
self ._default_windows_location ())
155
151
elif platform .system () == 'Java' and os ._name == 'nt' :
156
152
start_cmd = self ._default_windows_location ()
@@ -161,7 +157,7 @@ def _get_firefox_start_cmd(self):
161
157
break
162
158
else :
163
159
# couldn't find firefox on the system path
164
- raise RuntimeError ("Could not find firefox in your system PATH." +
160
+ raise RuntimeError ("Could not find firefox in your system PATH." +
165
161
" Please specify the firefox binary location or install firefox" )
166
162
return start_cmd
167
163
@@ -201,7 +197,7 @@ def _extract_and_check(self, profile, no_focus_so_name, x86, amd64):
201
197
return built_path
202
198
203
199
def which (self , fname ):
204
- """Returns the fully qualified path by searching Path of the given
200
+ """Returns the fully qualified path by searching Path of the given
205
201
name"""
206
202
for pe in os .environ ['PATH' ].split (os .pathsep ):
207
203
checkname = os .path .join (pe , fname )
0 commit comments