Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /opt/google/chrome-remote-desktop/chrome-remote-desktop.orig 2020-02-08 12:02:18.215963398 -0500
- +++ /opt/google/chrome-remote-desktop/chrome-remote-desktop 2020-02-08 12:05:27.651996683 -0500
- @@ -75,7 +75,7 @@
- # with large or multiple monitors. This is a comma-separated list of
- # resolutions that will be made available if the X server supports RANDR. These
- # defaults can be overridden in ~/.profile.
- -DEFAULT_SIZES = "1600x1200,3840x2560"
- +DEFAULT_SIZES = "2560x1080"
- # Xorg's dummy driver only supports switching between preconfigured sizes. To
- # make resize-to-fit somewhat useful, include several common resolutions by
- @@ -105,7 +105,7 @@
- SYSTEM_SESSION_FILE_PATH = "/etc/chrome-remote-desktop-session"
- X_LOCK_FILE_TEMPLATE = "/tmp/.X%d-lock"
- -FIRST_X_DISPLAY_NUMBER = 20
- +FIRST_X_DISPLAY_NUMBER = 0
- # Amount of time to wait between relaunching processes.
- SHORT_BACKOFF_TIME = 5
- @@ -418,8 +418,8 @@
- """Return a candidate display number for which there is currently no
- X Server lock file"""
- display = FIRST_X_DISPLAY_NUMBER
- - while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
- - display += 1
- +# while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
- +# display += 1
- return display
- def _init_child_env(self):
- @@ -701,8 +701,10 @@
- self._init_child_env()
- self._setup_pulseaudio()
- self._setup_gnubby()
- - self._launch_x_server(x_args)
- - self._launch_x_session()
- + #self._launch_x_server(x_args)
- + #self._launch_x_session()
- + display = self.get_unused_display_number()
- + self.child_env["DISPLAY"] = ":%d" % display
- def launch_host(self, host_config, extra_start_host_args):
- # Start remoting host
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement