From 97deb4d34801850ff2790cea7b4701dab3bc2ce1 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sun, 18 Jun 2017 15:01:58 +0000 Subject: [PATCH] * use a much smaller default display size for start-desktop mode * fix pydev warnings git-svn-id: https://xpra.org/svn/Xpra/trunk@16086 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/scripts/server.py | 2 +- src/xpra/server/vfb_util.py | 42 ++++++++++++++++++++++++------------- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/src/xpra/scripts/server.py b/src/xpra/scripts/server.py index 454d382620..cb42d2791c 100644 --- a/src/xpra/scripts/server.py +++ b/src/xpra/scripts/server.py @@ -733,7 +733,7 @@ def kill_dbus(): from xpra.x11.bindings.window_bindings import X11WindowBindings X11Window = X11WindowBindings() if (starting or starting_desktop) and not clobber and opts.resize_display: - set_initial_resolution() + set_initial_resolution(starting_desktop) except ImportError as e: log.error("Failed to load Xpra server components, check your installation: %s" % e) return 1 diff --git a/src/xpra/server/vfb_util.py b/src/xpra/server/vfb_util.py index 89e9bf0a1a..4114b71d25 100644 --- a/src/xpra/server/vfb_util.py +++ b/src/xpra/server/vfb_util.py @@ -11,15 +11,18 @@ import subprocess import sys import os.path -import select from xpra.scripts.main import no_gtk from xpra.scripts.config import InitException from xpra.os_util import setsid, shellsub, monotonic_time, close_fds, setuidgid, getuid, getgid from xpra.platform.dotxpra import osexpand +from tests.xpra.clients.fake_client import log DEFAULT_VFB_RESOLUTION = tuple(int(x) for x in os.environ.get("XPRA_DEFAULT_VFB_RESOLUTION", "8192x4096").replace(",", "x").split("x", 1)) +assert len(DEFAULT_VFB_RESOLUTION)==2 +DEFAULT_DESKTOP_VFB_RESOLUTION = tuple(int(x) for x in os.environ.get("XPRA_DEFAULT_DESKTOP_VFB_RESOLUTION", "1280x1024").replace(",", "x").split("x", 1)) +assert len(DEFAULT_DESKTOP_VFB_RESOLUTION)==2 def start_Xvfb(xvfb_str, pixel_depth, display_name, cwd, uid, gid, xauth_data): @@ -102,6 +105,7 @@ def preexec(): # waiting up to 10 seconds for it to show up limit = monotonic_time()+10 buf = "" + import select #@UnresolvedImport while monotonic_time()