diff options
-rwxr-xr-x | remoting/tools/me2me_virtual_host.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/remoting/tools/me2me_virtual_host.py b/remoting/tools/me2me_virtual_host.py index e2b1849..2b537b6 100755 --- a/remoting/tools/me2me_virtual_host.py +++ b/remoting/tools/me2me_virtual_host.py @@ -281,9 +281,14 @@ class Desktop: max_width = max([width for width, height in self.sizes]) max_height = max([height for width, height in self.sizes]) - logging.info("Starting Xvfb on display :%d" % display); + try: + xvfb = locate_executable("Xvfb-randr") + except Exception: + xvfb = "Xvfb" + + logging.info("Starting %s on display :%d" % (xvfb, display)); screen_option = "%dx%dx24" % (max_width, max_height) - self.x_proc = subprocess.Popen(["Xvfb", ":%d" % display, + self.x_proc = subprocess.Popen([xvfb, ":%d" % display, "-noreset", "-auth", X_AUTH_FILE, "-nolisten", "tcp", |