hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.82k stars 449 forks source link

Main window closes right after opening #2756

Open allrobot opened 4 months ago

allrobot commented 4 months ago

Describe the bug

When enabling CopyQ on Linux, it often shuts down automatically.

To Reproduce

Ctrl+P brings up the preferences, then set the shortkey to show the main window under the mouse as Win+V, and in general settings, automatically close when not in focus.

Expected behavior

I hope that the main window that pops up when I press Win+V doesn't keep automatically closing. The operation logic should be the same as the clipboard history in Windows 10. At least the clipboard history in Windows doesn't automatically close.

Screenshots

vmware_HYzXRcgofC.webm

Version, OS and Environment

Other

  1. Can you make it so that CopyQ doesn't exit automatically when the Backspace key is pressed? I want to delete the search string in the main window, but accidentally closed the main window by pressing the Backspace key too many times. It would be best if it worked like Ditto, where Ditto supports typing a search, but pressing the Backspace key does not immediately exit the main window.(Esc can exit the main window)

  2. Can it support cloud synchronization of clipboard history? I hope Windows, Android, and Linux can synchronize clipboard history, just like KDE CONNECT software automatically synchronizes the clipboard and various files under the same Wi-Fi network, which is very convenient.

  3. Selection through ↑ or ↓ is not supported, and only through ctrl+↑/↓ can entries in the clipboard be chosen. However, if you move to the target entry and press Enter, it cannot be pasted into the shell window. I must press F2 and then press F2 again to select the entry and paste it, or I can paste it by double-clicking a clipboard entry with the mouse. This operation is not very convenient. I strongly suggest that the author learn from the interaction logic of Windows10 or Ditto clipboard to help CopyQ enhance its interaction logic and make it more user-friendly.

hluk commented 4 months ago

Not sure if I understand the problem.

If you enable the option "Close When Unfocused", the main window will close as soon as it loses keyboard focus (other app is activated). If you disable the option, it stays open even if it loses focus.

Are you saying that the main window closes right after opening without any user input?

Does the window even get keyboard focus?

Sometimes desktop environments have strong focus stealing prevention mechanism that prevent the window to get focus, though I haven't seen the problem in a long while.

allrobot commented 4 months ago

Are you saying that the main window closes right after opening without any user input?

yes. It can be reproduced in the latest version of the Kali system, you may download and try to reproduce it.