* Check if the VNC server is running. * @returns Whether the VNC server is running.
()
| 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 | } |