You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to set 1.3MB picture to clipboard raise an exception.
>>> klembord.set({'image/png': png, 'TEXT': 'abcd'.encode()})
Exception in thread klembord XSetter server:
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/lib/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File ".../site-packages/klembord/xclipboard.py", line 221, in serve
client_prop = process_request(
^^^^^^^^^^^^^^^^
File ".../site-packages/klembord/xclipboard.py", line 301, in process_request
client.change_property(
File ".../site-packages/Xlib/xobject/drawable.py", line 430, in change_property
request.ChangeProperty(display = self.display,
File ".../site-packages/Xlib/protocol/rq.py", line 1347, in __init__
self._binary = self._request.to_binary(*args, **keys)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../site-packages/Xlib/protocol/rq.py", line 1069, in to_binary
static_part = struct.pack(self.static_codes, *pack_items)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: 'H' format requires 0 <= number <= 65535
Try to set 3KB picture to clipboard is ok but need time.sleep:
Try to get a 1.3MB picture from clipboard.
Execute the code, I got
When get a 3KB picture is ok.
Try to set 1.3MB picture to clipboard raise an exception.
Try to set 3KB picture to clipboard is ok but need
time.sleep
:Without
time.sleep
, the result turns out abnormal and kinda randomly, I even can't reproduce.The text was updated successfully, but these errors were encountered: