Open GoogleCodeExporter opened 9 years ago
I had the same problem. To fix it, I had to change the code so it explicitly
passes the third argument, which should be a default value but for some reason
isn't.
in /usr/lib/python2.7/dist-packages/autokey/scripting.py, change the following:
* Change this line in GtkClipboard's __fillSelection():
self.selection.set_text(string.encode("utf-8"))
to this:
self.selection.set_text(string.encode("utf-8"), -1)
* Change this line in GtkClipboard's fill_clipboard():
self.clipBoard.set_text(contents.encode("utf-8"))
to this:
self.clipBoard.set_text(contents.encode("utf-8"), -1)
Original comment by pau...@zolabooks.com
on 4 Dec 2012 at 9:18
Yikes! I just ran this and found many more references to set_text() that should
probably also have the "-1" argument added to them:
grep -rIF '.set_text(' /usr/lib/python2.7/dist-packages/autokey
Original comment by paul...@gmail.com
on 5 Dec 2012 at 9:30
The above hint to do this:
in /usr/lib/python2.7/dist-packages/autokey/scripting.py, change the following:
* Change this line in GtkClipboard's __fillSelection():
self.selection.set_text(string.encode("utf-8"))
to this:
self.selection.set_text(string.encode("utf-8"), -1)
* Change this line in GtkClipboard's fill_clipboard():
self.clipBoard.set_text(contents.encode("utf-8"))
to this:
self.clipBoard.set_text(contents.encode("utf-8"), -1)
worked for me. Thank you.
Original comment by ranju.ma...@gmail.com
on 19 Jul 2013 at 1:32
[deleted comment]
Paul's change worked. Except I also needed to add it to interface.py
/usr/lib/python2.7/dist-packages/autokey/interface.py:
self.clipBoard.set_text(self.__savedClipboard, -1)
/usr/lib/python2.7/dist-packages/autokey/interface.py:
self.selection.set_text(string.encode("utf-8"), -1)
/usr/lib/python2.7/dist-packages/autokey/interface.py:
self.clipBoard.set_text(string.encode("utf-8"), -1)
/usr/lib/python2.7/dist-packages/autokey/scripting.py:
self.selection.set_text(string.encode("utf-8"), -1)
/usr/lib/python2.7/dist-packages/autokey/scripting.py:
self.clipBoard.set_text(contents.encode("utf-8"), -1)
Original comment by JRep...@gmail.com
on 19 Aug 2014 at 6:05
This issue occured for me whenever I set "Paste using" in the UI to anything
clipboard related. Only "Keyboard" option worked, but was unusable in some
applications (due to auto-formatting issues in that app).
0.90.4, Debian Sid.
Adding the -1 parameter in the mentioned places in interface.py and
scripting.py fixed this issue for me, thanx for sharing!
Any plans on including the two year old fixes upstream?
Original comment by schaefe...@web.de
on 21 Nov 2014 at 12:10
Original issue reported on code.google.com by
hedgehog...@yahoo.com
on 19 Jul 2012 at 4:20