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:
parent
42b6d23bda
commit
51fcd5fb3c
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue