[Parti-discuss] [PATCH] client support for M$ Windows!

Antoine Martin antoine at nagafix.co.uk
Sun Mar 22 13:09:32 EDT 2009


Hi,

I've successfully used xpra 0.0.5 (and now 0.0.6 on which these patches
are based) on that other OS using the new TCP mode.
(it may be possible to use ssh mode with plink - I haven't tried that)
You will obviously need to install python, pygtk, etc...

First patch moves some common stuff out of lowlevel (should be pretty
uncontroversial)
The second one is just annoying: "Due to limitations in the winsock
API..." , see:
http://faq.pygtk.org/index.py?req=all#20.20
so this patch re-creates a new listener (for both read and write) when
there are pending writes and re-creates the read-only listener when
not... it's not pretty, but it works and it only does anything when
running on Windows, on Linux the behaviour should be completely unchanged.
Next, we can't import some of the keyboard related stuff from lowlevel
into wimpiggy/keys.py so we load it (and use it) only on non "win*"
platforms. We probably need to do something to replace its
functionality, but since I don't really understand this part... maybe
later. Or maybe when this whole area gets revamped?
We currently ignore sendClientMessage from lowlevel on windows.
We remove an unused import from client.py and disable the new clipboard
(bummer!) as it uses some lowlevel X calls... (will try a better
approach for that later)
Finally, we obviously can't compile the pyrex/X stuff, so we need to
take this out when building on windows (building on windows will need
some more work so just build it on Linux and copy over for now)

Please consider applying (at least some of) these patches.

Thanks
Antoine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mswindows-cant-clipboard-asis.patch
Type: text/x-patch
Size: 2061 bytes
Desc: not available
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090323/345b905f/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mswindows-conditional-pyrex.patch
Type: text/x-patch
Size: 1983 bytes
Desc: not available
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090323/345b905f/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mswindows-ignore-sendclientmessage.patch
Type: text/x-patch
Size: 683 bytes
Desc: not available
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090323/345b905f/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mswindows-keyboard-not-impl.patch
Type: text/x-patch
Size: 4147 bytes
Desc: not available
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090323/345b905f/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mswindows-move-common-parts.patch
Type: text/x-patch
Size: 14377 bytes
Desc: not available
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090323/345b905f/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mswindows-unused-import.patch
Type: text/x-patch
Size: 466 bytes
Desc: not available
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090323/345b905f/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mswindows-winsock-workaround.patch
Type: text/x-patch
Size: 2779 bytes
Desc: not available
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090323/345b905f/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090323/345b905f/attachment-0001.pgp>


More information about the Parti-discuss mailing list