• Home
  • Raw
  • Download

Lines Matching +full:windows +full:- +full:remote +full:- +full:only

31         # Need to match to the default browser returned by xdg-settings, which
52 if browser[-1] == '&':
53 return BackgroundBrowser(browser[:-1])
76 - 0: the same browser window (the default).
77 - 1: a new browser window.
78 - 2: a new browser page ("tab").
94 If not possible, then open url in the only browser window.
110 an entry in the BROWSER environment variable -- we can copy a general
161 and without remote functionality."""
207 """Parent class for all Unix browsers with remote functionality."""
223 def _invoke(self, args, remote, autoraise, url=None): argument
225 if remote and self.raise_opts:
226 # use autoraise argument only for remote invocation
233 if remote or self.background:
241 if remote:
243 # remote invocation has (hopefully) started a new instance.
246 # if remote call failed, open() will try direct invocation
278 # remote invocation failed, try straight way
290 remote_action_newwin = "-new-window"
291 remote_action_newtab = "-new-tab"
298 raise_opts = ["-noraise", "-raise"]
299 remote_args = ['-remote', 'openURL(%s%action)']
301 remote_action_newwin = ",new-window"
302 remote_action_newtab = ",new-tab"
309 raise_opts = ["-noraise", ""]
311 remote_action = "-n"
312 remote_action_newwin = "-w"
321 remote_action_newwin = "--new-window"
333 remote_action_newwin = "--new-window"
341 remote_args = ['-remote', 'openURL(%s%action)']
343 remote_action_newwin = ",new-window"
344 remote_action_newtab = ",new-tab"
347 # elinks doesn't like its stdout to be redirected -
348 # it uses redirected stdout as a signal to do -dump
355 See the output of ``kfmclient --commands``
356 for more information on the Konqueror remote-control interface.
382 p = subprocess.Popen(["konqueror", "--silent", url],
395 p = subprocess.Popen(["kfm", "-d", url],
407 # Grail remote control protocol doesn't really allow that at this
415 ".grail-unix")
417 filename = os.path.join(glob.escape(tempdir), glob.escape(user) + "-*")
461 # use xdg-open if around
462 if shutil.which("xdg-open"):
463 register("xdg-open", None, BackgroundBrowser("xdg-open"))
468 register("gio", None, BackgroundBrowser(["gio", "open", "--", "%s"]))
471 if "GNOME_DESKTOP_SESSION_ID" in os.environ and shutil.which("gvfs-open"):
472 register("gvfs-open", None, BackgroundBrowser("gvfs-open"))
478 if shutil.which("x-www-browser"):
479 register("x-www-browser", None, BackgroundBrowser("x-www-browser"))
487 for browser in ("mozilla-firefox",
488 "mozilla-firebird", "firebird",
509 for browser in ("google-chrome", "chrome", "chromium", "chromium-browser"):
517 # Next, Mosaic -- old but still in use.
542 # First try to use the default Windows browser
543 register("windows-default", WindowsDefault)
545 # Detect some common Windows browsers, fallback to IE
556 cmd = "xdg-settings get default-web-browser".split()
569 if shutil.which("www-browser"):
570 register("www-browser", None, GenericBrowser("www-browser"))
601 # Platform support for Windows
656 # that support it. 0 == new window; -1 == existing
657 toWindow = "toWindow %d" % (new - 1)
712 usage = """Usage: %s [-n | -t] url
713 -n: open new window
714 -t: open new tab""" % sys.argv[0]
723 if o == '-n': new_win = 1
724 elif o == '-t': new_win = 2