Skip to content

Instantly share code, notes, and snippets.

@dji-transpire
dji-transpire / use_existing_session.patch
Created September 30, 2023 00:03 — forked from nightuser/use_existing_session.patch
Use existing Xorg session for chrome-remote-desktop
Add an option to use the existing Xorg session with
chrome-remote-desktop.
The original idea of the patch: https://superuser.com/a/850359
--- a/chrome-remote-desktop 2022-04-23 17:34:24.118136150 +0300
+++ b/chrome-remote-desktop 2022-04-23 17:33:56.083833805 +0300
@@ -109,6 +109,8 @@
X_LOCK_FILE_TEMPLATE = "/tmp/.X%d-lock"
FIRST_X_DISPLAY_NUMBER = 20