Shared clipboard feature improvements
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glipper |
New
|
Undecided
|
Unassigned |
Bug Description
I always wanted to copy on one laptop and paste on the other, and now I found this feature in glipper 2.1 and it's really cool. By the looks of it, this feature isn't production ready yet, but here is a patche that makes the feature work properly (except for the preferences dialog, I'm using clipboard sharing with this patch right now).
What the patch does:
* Fixes for shared clipboards
- Base64 encode the clipboard data to avoid nasty surprizes when the
encryption produces NUL bytes in the middle of the result;
- Enable GDK threads and do proper locking to avoid deadlock when setting
the clipboard text from a StringListener thread;
- Detect loops like in plugins/newline.py
Now... I'm not a Python programmer at all, so I may have missed a few gotchas. But at least it works :) - "for now"(tm)
Is it at all possible to not have the lock handling code in Clipboard.py? I'm not sure if that's the best place for it.