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

Image data not preserved on clipboard after application closes (linux x11) #63

Open
t-lock opened this issue Sep 13, 2024 · 0 comments
Open

Comments

@t-lock
Copy link

t-lock commented Sep 13, 2024

I am not sure if this is expected behavior on my platform or not, but I am experiencing the following:

  1. When writing text data to clipboard, I can exit the application with os.Exit(0) and still retain the text on the system clipboard
  2. When writing png img data to clipboard with no other changes, the clipboard is emptied when the application closes
  3. When leaving the application running in the background with no other changes, I can paste png data around my system. As soon as I close the application, I can no longer paste the image

I am on Linux X11, distro is Pop OS <-- Ubuntu <-- Debian.

As a fallback, I am leaving my application running in the background until I can detect that the clipboard has been overwritten, but I just close my GUI window, so the user experience mimics "I got my screenshot on the clipboard and the screenshot application has now closed, but I can go paste this somewhere".

Cheers!

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