예제 #1
0
파일: client.py 프로젝트: svn2github/Xpra
 def run(self):
     gtk_main_quit_on_fatal_exceptions_enable()
     gtk.main()
     return  self.exit_code
예제 #2
0
파일: client.py 프로젝트: rudresh2319/Xpra
 def run(self):
     gtk_main_quit_on_fatal_exceptions_enable()
     gtk.main()
     return self.exit_code
예제 #3
0
			self.info.set_text("Socket error: %s" % e)
			print("error %s" % e)
			return
		self.info.set_text("Connection established")
		try:
			from xpra.protocol import SocketConnection
			global socket_wrapper
			socket_wrapper = SocketConnection(sock, "xprahost")
		except Exception, e:
			self.info.set_text("Xpra Client error: %s" % e)
			print("Xpra Client error: %s" % e)
			return
		self.window.hide()
		# launch Xpra client in the same gtk.main():
		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
예제 #4
0
파일: client.py 프로젝트: svn2github/Xpra
 def run(self):
     gtk_main_quit_on_fatal_exceptions_enable()
     gtk.main()
예제 #5
0
 sock.settimeout(None)
 self.set_info_text("Connection established")
 try:
     from xpra.bytestreams import SocketConnection
     global socket_wrapper
     socket_wrapper = SocketConnection(sock, sock.getsockname(),
                                       sock.getpeername())
 except Exception, e:
     self.set_info_text("Xpra Client error: %s" % e)
     set_sensitive(True)
     print("Xpra Client error: %s" % e)
     return
 gobject.idle_add(self.window.hide)
 # launch Xpra client in the same gtk.main():
 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
예제 #6
0
파일: client.py 프로젝트: rudresh2319/Xpra
 def run(self):
     gtk_main_quit_on_fatal_exceptions_enable()
     gtk.main()
예제 #7
0
파일: server.py 프로젝트: dmgerman/hacking
 def run(self):
     gtk_main_quit_on_fatal_exceptions_enable()
     gtk.main()
     return self._upgrading