Bug 1229371
| Summary: | Using clipboard to paste text fails - set_text() takes exactly 3 arguments (2 given) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christopher Wawak <cwawak> |
| Component: | autokey | Assignee: | Raghu Udiyar <raghusiddarth> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 22 | CC: | raghusiddarth |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-06-08 15:10:39 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 1089695 *** |
Description of problem: When using Autokey-GTK to stick a large bunch of text into the clipboard, I encounter the following error: 2015-06-08 10:00:05,418 DEBUG - iomediator - Send via clipboard 2015-06-08 10:00:05,418 DEBUG - interface - Sending string: u'To join via Browser:\n [...]' 2015-06-08 10:00:05,419 ERROR - interface - Error in X event loop thread Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/autokey/interface.py", line 116, in __eventLoop method(*args) File "/usr/lib/python2.7/site-packages/autokey/interface.py", line 500, in __sendStringClipboard self.__fillClipboard(string) File "/usr/lib/python2.7/site-packages/autokey/interface.py", line 537, in __fillClipboard self.clipBoard.set_text(string.encode("utf-8")) TypeError: Gtk.Clipboard.set_text() takes exactly 3 arguments (2 given) Autokey-gtk generally hangs for a minute or two, and eventually just gives up. Version-Release number of selected component (if applicable): $ rpm -q autokey-gtk autokey-gtk-0.90.4-6.fc21.noarch How reproducible: Steps to Reproduce: 1. Create new phrase that pastes using cardboard. Maybe with multiple lines. 2. Try to use the new phrase. Actual results: Autokey-gtk seems to hang for a time, and running debug shows the following error: TypeError: Gtk.Clipboard.set_text() takes exactly 3 arguments (2 given) Expected results: Pastes text. Additional info: I replaced line 537 of autokey/interface.py with the following: self.clipBoard.set_text(string.encode("utf-8"), len=-1) It seems to work fine now. It would be great if this could be fixed through a patch to the Feodra RPM, considering there's not been movement on the upstream issue for years. Existing, stale issue. https://code.google.com/p/autokey/issues/detail?id=212