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)
| 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 | """ |
no outgoing calls