Skip to content

Preserve intra-qube clipboard contents after the program copied from exits #6961

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

Open
qwrd opened this issue Oct 12, 2021 · 6 comments
Open
Labels
C: other No other component ("C:") label applies to this issue, or the appropriate label is not yet known. P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. ux This issue pertains to the user experience (UX) in Qubes OS.

Comments

@qwrd
Copy link

qwrd commented Oct 12, 2021

Qubes OS release

4.0, 4.1

Brief summary

Hello,

I've noticed an annoyance in Qubes, and I'm hoping this can be fixed somehow.... has already caused me some minor data loss. Anyway, if you copy some text from a certain window and then close that window before pasting the text to another window within the same qube, the clipboard contents will be lost. I've been able to reproduce this on the Debian 10 and Fedora 30 templates on Q4.0 as well as Debian 11 and Fedora 34 on Q4.1-rc1. Not sure why this is the case, but I recall some old debian versions had this problem.

Testing this on Ubuntu 20.04 LTS (outside QubesOS) works fine, the clipboard remembers the copied text. Same behavior on a Windows PC.

Steps to reproduce

  • Run a qube of choice
  • From the XFCE menu for this qube run the terminal emulator window
  • From same menu for this qube run another windowed program like a text editor (you may need to add a shortcut in the settings)
  • Write some random text in the text editor
  • Select the text with the mouse and right-click and copy it to clipboard
  • Try to paste the copied text into the terminal emulator by right-clicking on it and choosing Paste (the copied text will appear)
  • Now close the text editor and choose not to save
  • Try to paste the text into the terminal emulator again (it will not allow it, the paste option is greyed out)

Expected behavior

The system should remember the clipboard contents in a qube even after the window that the contents have been copied from has been closed, and the process exited. This is the default behavior on many other operating systems.

Actual behavior

Clipboard contents are lost after the program that initially contained the contents exits.

@qwrd qwrd added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug labels Oct 12, 2021
@andrewdavidwong andrewdavidwong added C: other No other component ("C:") label applies to this issue, or the appropriate label is not yet known. needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. labels Oct 12, 2021
@andrewdavidwong andrewdavidwong added this to the Release 4.0 updates milestone Oct 12, 2021
@unman
Copy link
Member

unman commented Oct 13, 2021 via email

@qwrd
Copy link
Author

qwrd commented Oct 13, 2021

Interesting. Now that you mention it, I think I do vaguely remember someone talking to me about this about a decade ago. So, with this in mind, I was wondering, if it is in the interest of Qubes to mimic this behavior by default since it is a common behavior on multiple other operating systems. But considering Qubes already has some form of inter-qube clipboard manager, I was wondering, if this topic would fit into that category i.e. rather than installing some 3-rd party clipboard daemon, should this rather be a part of the qubes clipboard management?

@unman
Copy link
Member

unman commented Oct 13, 2021 via email

@andrewdavidwong
Copy link
Member

Personally, I wouldn't want to see Qubes getting dirty in individual qube clipboards.

I am inclined to agree (also see here, though this request is rather modest compared to many others).

But #3415 envisages exactly this,#5778 covered lots of ground in this area (perhaps too much), and assorted other clipboard related issues hover around it. @andrewdavidwong ?

Fair points. I'll leave it up to the devs to decide.

@andrewdavidwong andrewdavidwong added T: enhancement ux This issue pertains to the user experience (UX) in Qubes OS. and removed T: bug needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. labels Oct 13, 2021
@andrewdavidwong andrewdavidwong modified the milestones: Release 4.0 updates, Release TBD Oct 13, 2021
@andrewdavidwong andrewdavidwong changed the title QubesOS loses clipboard contents after the program copied from exits Preserve intra-qube clipboard contents after the program copied from exits Oct 13, 2021
@ninavizz
Copy link
Member

Thx for filing this, @qwrd! I tend to agree—but also, amnesiac properties in Qubes, generally, I feel need to be clearer. This feels "accidental" (per how it was built, differently from how users are 'trained' in other operating systems to expect). Thx too, to @unman for clarifying this is a freedesktop issue. Adding this to the "Clipboard Experience" project here, for consideration once we get funding to improve the clipboard here (not a low priority, fwiw).

@unman
Copy link
Member

unman commented Oct 14, 2021 via email

@andrewdavidwong andrewdavidwong removed this from the Release TBD milestone Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: other No other component ("C:") label applies to this issue, or the appropriate label is not yet known. P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. ux This issue pertains to the user experience (UX) in Qubes OS.
Projects
None yet
Development

No branches or pull requests

4 participants