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

Fix copying to clipboard #1

Open
qubes-user-837 opened this issue Aug 27, 2022 · 0 comments
Open

Fix copying to clipboard #1

qubes-user-837 opened this issue Aug 27, 2022 · 0 comments

Comments

@qubes-user-837
Copy link

Thanks for the cool project and very clear documentation.

While trying to get it working, I noticed that it took screenshots and moved them into the target VM perfectly, but didn't copy them to the clipboard. I tried debugging the qvm-run command manually, but eventually found the issue on this line

my $remotepath = "$ENV{HOME}/QubesIncoming/dom0/${filename}";

This should use ~ instead of $ENV{HOME}, as $ENV{HOME} evaluates to /home/[the dom0 username], but this doesn't necessarily exist in the target vm.

Example command that runs under qvm-run (typically with username "user"):

  • xclip -sel c -t image/png /home/qubes-user/QubesIncoming/dom0/screenshot.png, vs
  • xclip -sel c -t image/png ~/QubesIncoming/dom0/screenshot.png

With this change, it works. Hopefully this information can help others.

Command I used for testing

  • xclip -sel c -o | file -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant