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

Method checkVNCRunning

packages/js-sdk/src/sandbox.ts:742–749  ·  view source on GitHub ↗

* Check if the VNC server is running. * @returns Whether the VNC server is running.

()

Source from the content-addressed store, hash-verified

740 * @returns Whether the VNC server is running.
741 */
742 private async checkVNCRunning(): Promise<boolean> {
743 try {
744 const result = await this.desktop.commands.run('pgrep -x x11vnc')
745 return result.stdout.trim() !== ''
746 } catch (error) {
747 return false
748 }
749 }
750}

Callers 2

startMethod · 0.95
stopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected