MCPcopy Create free account
hub / github.com/e2b-dev/desktop / open

Method open

packages/python-sdk/e2b_desktop/main.py:509–516  ·  view source on GitHub ↗

Open a file or a URL in the default application. :param file_or_url: The file or URL to open.

(self, file_or_url: str)

Source from the content-addressed store, hash-verified

507 self.commands.run(f"sleep {ms / 1000}")
508
509 def open(self, file_or_url: str):
510 """
511 Open a file or a URL in the default application.
512
513 :param file_or_url: The file or URL to open.
514 """
515 handle = self.commands.run(f"xdg-open {file_or_url}", background=True)
516 handle.disconnect()
517
518 def get_current_window_id(self) -> str:
519 """

Callers 3

test_right_clickFunction · 0.45
test_screenshotFunction · 0.45
test_writeFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_right_clickFunction · 0.36
test_screenshotFunction · 0.36
test_writeFunction · 0.36