1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 09:08:07 +02:00

only supply a -foreground argument on Mac.

This commit is contained in:
Rob Sayre 2011-06-23 15:47:25 -07:00
parent 42b6d23bda
commit 51fcd5fb3c

View file

@ -159,7 +159,10 @@ class BrowserCommand():
shutil.rmtree(self.tempDir)
def start(self, url):
cmds = [self.path, "-foreground", "-no-remote", "-profile", self.profileDir, url]
cmds = [self.path]
if platform.system() == "Darwin":
cmds.append("-foreground")
cmds.extend(["-no-remote", "-profile", self.profileDir, url])
subprocess.call(cmds)
def makeBrowserCommands(browserManifestFile):