[2021-11-13]

Chrome Remote Desktop (Ubuntu)

インストール

rm -f ~/.chrome-remote-desktop-session

スクリプトの改変

cd /opt/google/chrome-remote-desktop
cp chrome-remote-desktop chrome-remote-desktop.bak

/opt/google/chrome-remote-desktop/chrome-remote-desktop

#FIRST_X_DISPLAY_NUMBER = 20
FIRST_X_DISPLAY_NUMBER = 0
def launch_session(self, x_args):
self._init_child_env()
self._setup_pulseaudio()
self._setup_gnubby()
#self._launch_x_server(x_args)
#if not self._launch_pre_session():
# # If there was no pre-session script, launch the session immediately.
# self.launch_x_session()
display = self.get_unused_display_number()
self.child_env["DISPLAY"] = f":{display}"
sudo systemctl restart chrome-remote-desktop@${USER}.service