-
Notifications
You must be signed in to change notification settings - Fork 24
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
Clearing clipboard dysfunctional #34
Comments
As with regular use everything is working correctly... I believe this report is connected to the testing procedure and the logic of saving data to file (items are flushed to disk on (correct) application end and after clipboard change). Are you testing with exiting the application by the context menu? If yes, everything should work as expected. But if the application is shut down by sending (unix) signal, then it is not ended gracefully. |
When Qlipper is terminated by clicking "Quit" in its context menu items deleted from the clipboard are not renewed upon re-launching Qlipper running either 0862db2 or c1a901a. But when Qlipper is terminated by exiting a desktop sessions the renewal of deleted clipboard items can be seen with 0862db2 and c1a901a in LXQt sessions but with neither of both in Xfce sessions. This makes me once again wonder whether there's something wrong with the way applications are terminated when LXQt sessions are closed. |
This is interesting.... it could be the way how applications are started under LXQt and Xfce.
|
Interesting, indeed. Would you agree we should discuss this in an issue on its own? |
Of course.. |
One thing we've forgotten a little bit is the other problem mentioned in the first comment - option "Clear Items on Exit" doesn't work as expected. |
This is because qlipper doesn't take ownership of the clipboard on its own. That means if you copy something to clipboard in app A, the app A is the owner of the clipboard. Qlipper just stores the values filled by app A. So if you stop qlipper, it flushes the history. But if app A is still running, the clipboard content exists on its own. Then after re-launch of qlipper it gets the current content of clipboard. <= IMO this is your scenario "added as last comes up again" and it's completely OK. |
The behavior is definitely inconsistent with the GUI which says "Clear Items on Exit", not "Clear Items on Exit but eventually only those which don't belong to another application that may still run." More importantly, I was just copying some output of |
In this case app A is the terminal emulator. I'm not a guru for the X, nor for the copy-paste behaviour/spec (https://en.wikipedia.org/wiki/X_Window_selection).
And what about following scenario? Qlipper isn't running. User stores something into clipboard (ctrl+c) -> the selections works normaly w/o any clipboard manager. The qlipper is started (while there is something in the clipboard). So qlipper should not care about it and begin to store the items just after something next is copied? Basicaly, what you are suggesting is:
IMHO both of those is wrong, but each can be implemented relatively easy. |
This whole issue was/is about not letting qlipper shutdown gracefully in LXQt session. After merging lxqt/lxqt-session#374 this is not the case any more. |
Clearing the clipboard history by clicking "Clear clipboard history" in Qlipper's context menu is valid for the current session only. All content gets restored the next session.
Topic "Clear Items on Exit" in the configuration dialogue doesn't seem to have any effect at all.
Seen on Arch Linux x86_64 or i686 running Qlipper 8bf53a8 and LXQt from recent VCS checkouts as well as on Debian testing x86_64 using the official repositories only.
The text was updated successfully, but these errors were encountered: