コード例 #1
0
ファイル: client_launcher.py プロジェクト: svn2github/Xpra
		from wimpiggy.util import gtk_main_quit_on_fatal_exceptions_enable
		gtk_main_quit_on_fatal_exceptions_enable()
		opts = AdHocStruct()
		opts.clipboard = True
		opts.pulseaudio = True
		opts.password_file = xpra_opts.password_file
		opts.title = "@title@ on @client-machine@"
		opts.encoding = xpra_opts.encoding
		opts.jpegquality = xpra_opts.jpegquality
		opts.max_bandwidth = 0.0
		opts.auto_refresh_delay = 0.0
		opts.key_shortcuts = []
		opts.compression_level = 3
		from xpra.platform import DEFAULT_SSH_CMD
		opts.ssh = DEFAULT_SSH_CMD
		opts.remote_xpra = ".xpra/run-xpra"
		opts.debug = None
                opts.no_tray = False
		opts.dock_icon = None
		opts.tray_icon = None
		opts.window_icon = None
		opts.readonly = False
		opts.session_name = "Xpra session"
		opts.mmap = True
		opts.keyboard_sync = True

		import logging
		logging.root.setLevel(logging.INFO)
		logging.root.addHandler(logging.StreamHandler(sys.stderr))

		app = XpraClient(socket_wrapper, opts)
コード例 #2
0
ファイル: client_launcher.py プロジェクト: rudresh2319/Xpra
xpra_opts.encoding = default_str("encoding", DEFAULT_ENCODING,
                                 ENCODING_OPTIONS)
xpra_opts.jpegquality = default_int("jpegquality", 90)
xpra_opts.quality = default_int("quality", 90)
xpra_opts.min_quality = default_int("min-quality", 50)
xpra_opts.speed = default_int("speed", -1)
xpra_opts.min_speed = default_int("min-speed", -1)
xpra_opts.sockdir = None
xpra_opts.host = defaults.get("host", "127.0.0.1")
xpra_opts.username = ""
try:
    import getpass
    xpra_opts.username = getpass.getuser()
except:
    pass
xpra_opts.remote_xpra = default_str("remote_xpra", ".xpra/run-xpra")
xpra_opts.session_name = default_str("session_name", None)
xpra_opts.port = default_int("port", 10000)
xpra_opts.mode = default_str("mode", "tcp", ["tcp", "tcp + aes", "ssh"])
xpra_opts.debug = default_bool("debug", False)
xpra_opts.no_tray = default_bool("debug", False)
xpra_opts.dock_icon = default_str("dock-icon", "")
xpra_opts.tray_icon = default_str("tray-icon", "")
xpra_opts.window_icon = default_str("window-icon", "")
xpra_opts.password = default_str("password", "")
xpra_opts.password_file = default_str("password-file", "")
xpra_opts.clipboard = default_bool("clipboard", True)
xpra_opts.pulseaudio = default_bool("pulseaudio", True)
xpra_opts.pulseaudio_command = default_str("pulseaudio_command", "")
xpra_opts.mmap = default_bool("mmap", True)
xpra_opts.mmap_group = default_bool("mmap-group", False)
コード例 #3
0
ファイル: client_launcher.py プロジェクト: rudresh2319/Xpra
 from wimpiggy.util import gtk_main_quit_on_fatal_exceptions_enable
 gtk_main_quit_on_fatal_exceptions_enable()
 opts = AdHocStruct()
 opts.clipboard = xpra_opts.clipboard
 opts.pulseaudio = xpra_opts.pulseaudio
 opts.password_file = xpra_opts.password_file
 opts.title = "@title@ on @client-machine@"
 opts.encoding = xpra_opts.encoding
 opts.jpegquality = xpra_opts.jpegquality
 opts.max_bandwidth = xpra_opts.max_bandwidth
 opts.auto_refresh_delay = xpra_opts.auto_refresh_delay
 opts.key_shortcuts = xpra_opts.key_shortcuts
 opts.compression_level = xpra_opts.compression_level
 from xpra.platform import DEFAULT_SSH_CMD
 opts.ssh = DEFAULT_SSH_CMD
 opts.remote_xpra = ".xpra/run-xpra"
 opts.debug = xpra_opts.debug
 opts.no_tray = xpra_opts.no_tray
 opts.dock_icon = xpra_opts.dock_icon
 opts.tray_icon = xpra_opts.tray_icon
 opts.window_icon = xpra_opts.window_icon
 opts.readonly = xpra_opts.readonly
 opts.session_name = "Xpra session"
 opts.mmap = xpra_opts.mmap
 opts.mmap_group = xpra_opts.mmap_group
 opts.keyboard_sync = xpra_opts.keyboard_sync
 opts.send_pings = xpra_opts.send_pings
 opts.dpi = xpra_opts.dpi
 opts.cursors = xpra_opts.cursors
 opts.bell = xpra_opts.bell
 opts.notifications = xpra_opts.notifications
コード例 #4
0
ファイル: client_launcher.py プロジェクト: svn2github/Xpra
xpra_opts.title = default_str("title", "@title@ on @client-machine@")
xpra_opts.encoding = default_str("encoding", DEFAULT_ENCODING, ENCODING_OPTIONS)
xpra_opts.jpegquality = default_int("jpegquality", 90)
xpra_opts.quality = default_int("quality", 90)
xpra_opts.min_quality = default_int("min-quality", 50)
xpra_opts.speed = default_int("speed", -1)
xpra_opts.min_speed = default_int("min-speed", -1)
xpra_opts.sockdir = None
xpra_opts.host = defaults.get("host", "127.0.0.1")
xpra_opts.username = ""
try:
	import getpass
	xpra_opts.username = getpass.getuser()
except:
	pass
xpra_opts.remote_xpra = default_str("remote_xpra", ".xpra/run-xpra")
xpra_opts.session_name = default_str("session_name", None)
xpra_opts.port = default_int("port", 10000)
xpra_opts.mode = default_str("mode", "tcp", ["tcp", "tcp + aes", "ssh"])
xpra_opts.debug = default_bool("debug", False)
xpra_opts.no_tray = default_bool("debug", False)
xpra_opts.dock_icon = default_str("dock-icon", "")
xpra_opts.tray_icon = default_str("tray-icon", "")
xpra_opts.window_icon = default_str("window-icon", "")
xpra_opts.password = default_str("password", "")
xpra_opts.password_file = default_str("password-file", "")
xpra_opts.clipboard = default_bool("clipboard", True)
xpra_opts.pulseaudio = default_bool("pulseaudio", True)
xpra_opts.pulseaudio_command = default_str("pulseaudio_command", "")
xpra_opts.mmap = default_bool("mmap", True)
xpra_opts.mmap_group = default_bool("mmap-group", False)