Skip to content

Commit

Permalink
Code taken from OZ, another attempt at fixing clipboard issues
Browse files Browse the repository at this point in the history
Doesn't work for me but can't hurt: logic/subuserlib/classes/subuserSubmodules/run/x11Bridge.py
  • Loading branch information
timthelion committed Sep 12, 2017
1 parent b3a3f04 commit f422bff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions logic/subuserlib/classes/subuserSubmodules/run/x11Bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ def start(self,serviceStatus):
else:
permissionArgs.append(off)
commonArgs = ["--no-daemon", "--no-notifications", "--mmap", "--opengl=no"]
commonEnvVars = { "XPRA_CLIPBOARD_LIMIT" : "45"
, "XPRA_CLIPBOARDS" : "CLIPBOARD" }
# Launch xpra server
serverArgs = ["start","--no-pulseaudio","--no-mdns","--encoding=rgb"]
suppressOutput = not "SUBUSER_DEBUG_XPRA" in os.environ
Expand All @@ -235,6 +237,8 @@ def start(self,serviceStatus):
serverRuntime.hostname = self.getServerSubuserHostname()
self.user.registry.log("Hostname set.",verbosityLevel=4)
serverRuntime.setEnvVar("TMPDIR",os.path.join("/home/subuser","tmp"))
for arg, value in commonEnvVars.items():
serverRuntime.setEnvVar(arg, value)
serverRuntime.background = True
serverRuntime.backgroundSuppressOutput = suppressOutput
serverRuntime.setBackgroundCollectOutput(False,True)
Expand All @@ -257,6 +261,8 @@ def start(self,serviceStatus):
clientRuntime.logIfInteractive("Starting xpra client...")
clientRuntime.setEnvVar("XPRA_SOCKET_HOSTNAME","server")
clientRuntime.setEnvVar("TMPDIR",os.path.join("/home/subuser","tmp"))
for arg, value in commonEnvVars.items():
clientRuntime.setEnvVar(arg, value)
clientRuntime.background = True
clientRuntime.backgroundSuppressOutput = suppressOutput
(clientContainer, clientProcess) = clientRuntime.run(args=clientArgs)
Expand Down

0 comments on commit f422bff

Please sign in to comment.