SHARE
TWEET

Untitled

a guest Feb 8th, 2020 280 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- /opt/google/chrome-remote-desktop/chrome-remote-desktop.orig    2020-02-08 12:02:18.215963398 -0500
  2. +++ /opt/google/chrome-remote-desktop/chrome-remote-desktop 2020-02-08 12:05:27.651996683 -0500
  3. @@ -75,7 +75,7 @@
  4.  # with large or multiple monitors. This is a comma-separated list of
  5.  # resolutions that will be made available if the X server supports RANDR. These
  6.  # defaults can be overridden in ~/.profile.
  7. -DEFAULT_SIZES = "1600x1200,3840x2560"
  8. +DEFAULT_SIZES = "2560x1080"
  9.  
  10.  # Xorg's dummy driver only supports switching between preconfigured sizes. To
  11.  # make resize-to-fit somewhat useful, include several common resolutions by
  12. @@ -105,7 +105,7 @@
  13.  SYSTEM_SESSION_FILE_PATH = "/etc/chrome-remote-desktop-session"
  14.  
  15.  X_LOCK_FILE_TEMPLATE = "/tmp/.X%d-lock"
  16. -FIRST_X_DISPLAY_NUMBER = 20
  17. +FIRST_X_DISPLAY_NUMBER = 0
  18.  
  19.  # Amount of time to wait between relaunching processes.
  20.  SHORT_BACKOFF_TIME = 5
  21. @@ -418,8 +418,8 @@
  22.      """Return a candidate display number for which there is currently no
  23.     X Server lock file"""
  24.      display = FIRST_X_DISPLAY_NUMBER
  25. -    while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
  26. -      display += 1
  27. +#    while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
  28. +#      display += 1
  29.      return display
  30.  
  31.    def _init_child_env(self):
  32. @@ -701,8 +701,10 @@
  33.      self._init_child_env()
  34.      self._setup_pulseaudio()
  35.      self._setup_gnubby()
  36. -    self._launch_x_server(x_args)
  37. -    self._launch_x_session()
  38. +    #self._launch_x_server(x_args)
  39. +    #self._launch_x_session()
  40. +    display = self.get_unused_display_number()
  41. +    self.child_env["DISPLAY"] = ":%d" % display
  42.  
  43.    def launch_host(self, host_config, extra_start_host_args):
  44.      # Start remoting host
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top