Skip to content

Commit

Permalink
update to match new XpraClient interface: takes opts not list of para…
Browse files Browse the repository at this point in the history
…ms, use AdHocStruct to emulate

git-svn-id: https://xpra.org/svn/Xpra/trunk@210 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 13, 2011
1 parent 7e70bab commit 8875e19
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/xpra/scripts/client_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,26 @@ def connect_tcp(self):
return
self.window.hide()
# launch Xpra client in the same gtk.main():
from wimpiggy.util import gtk_main_quit_on_fatal_exceptions_enable
from wimpiggy.util import gtk_main_quit_on_fatal_exceptions_enable, AdHocStruct
gtk_main_quit_on_fatal_exceptions_enable()
app = XpraClient(socket_wrapper, 3, 100, None, None, False, False)
opts = AdHocStruct()
opts.clipboard = True
opts.pulseaudio = True
opts.password_file = None
opts.title_suffix = None
opts.title = "@title@ on @client-machine@"
opts.encoding = "rgb24"
opts.jpegquality = 80
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.dock_icon = None
app = XpraClient(socket_wrapper, opts)
app.run()

def launch_xpra(self):
Expand Down

0 comments on commit 8875e19

Please sign in to comment.