Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing interaction between xsel and qubes clipboard #5781

Closed
cryslith opened this issue Apr 22, 2020 · 4 comments
Closed

Confusing interaction between xsel and qubes clipboard #5781

cryslith opened this issue Apr 22, 2020 · 4 comments
Labels
C: other eol-4.0 Closed because Qubes 4.0 has reached end-of-life (EOL) P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.

Comments

@cryslith
Copy link

cryslith commented Apr 22, 2020

Qubes OS version: R4.0

Affected component(s) or functionality: Clipboard

Brief summary: Attempting to copy >4000 bytes between VMs using xsel results in confusing message.

To Reproduce

  1. Open any AppVM
  2. Run python3 -c 'import sys; sys.stdout.buffer.write(b"A" * 4001)' | xsel -ib
  3. Press Ctrl+Shift+C

Expected behavior
Data should be copied properly; alternatively, an explanatory error message should be displayed.

Actual behavior
Popup message says "Copied 1 byte to the clipboard." and nothing is copied.

Workaround
One solution to copying large amounts of data in general is to use the qvm-copy command. Another workaround is to use the window manager's usual copying UI instead of using xsel.

Relevant documentation you've consulted

Related, non-duplicate issues

@cryslith cryslith added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. labels Apr 22, 2020
@marmarek
Copy link
Member

This seems to be an issue with xsel. If I print it to the console, then copy from there, 4001 bytes are correctly copied.
But when I try to copy 66kb, only first 65000 bytes are copied and so says the message (nothing about exceeding the limit).

@cryslith cryslith changed the title Confusing 4000-byte limit in qubes clipboard Confusing interaction between xsel and qubes clipboard Apr 22, 2020
@cryslith
Copy link
Author

Oops, you're right. I thought I tried that. Edited the issue.

@rootnoob
Copy link

rootnoob commented Sep 20, 2021

I think my issue I discovered some-time has the same root-cause (sorry if this needs a new issue).

Attempting to ctrlc-ctrlshiftc from firefox dvm to ctrlshiftv-ctrlv to gedit results, (> rougly 65000 bytes, as @marmarek said), results in exactly '1 byte (dom0 notification)' being copied to the global clipboard; and 1 letter (the same letter every single time) being pasted into gedit.

@andrewdavidwong andrewdavidwong added the eol-4.0 Closed because Qubes 4.0 has reached end-of-life (EOL) label Aug 5, 2023
@github-actions
Copy link

github-actions bot commented Aug 5, 2023

This issue is being closed because:

If anyone believes that this issue should be reopened and reassigned to an active milestone, please leave a brief comment.
(For example, if a bug still affects Qubes OS 4.1, then the comment "Affects 4.1" will suffice.)

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: other eol-4.0 Closed because Qubes 4.0 has reached end-of-life (EOL) P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
Development

No branches or pull requests

4 participants