hluk / CopyQ

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

Copyq stopped working on Ubuntu 23.04 #2342

Open Rik44444 opened 1 year ago

Rik44444 commented 1 year ago

Hi, Copyq is no longer working for me after updating from Ubuntu 22.10 to 23.04. The app launches, but things that I copy are no longer added to Copyq. Running Copyq 6.4.0 from Ubuntu repo. Ubuntu 23.04, Gnome 44. Rik

alaendle commented 1 year ago

I experience similar behavior even after upgrading to 7.0.0~lunar.

Warning [2023-04-27 04:52:02.531] <monitorClipboard-4477>: [default] QtWarning: Activating Wayland clipboard took 5000 ms
ERROR [2023-04-27 04:52:02.533] <monitorClipboard-4477>: [default] QtCritical: Failed to activate Wayland clipboard
UglyWillDuckling commented 1 year ago

Having the same issue here. Tested with the latest 7.0.0. version.

Getting the same error as @alaendle.

Ubuntu 23.04 Gnome 44.

luckylittle commented 1 year ago

Same issue here, but this is not exclusive to Ubuntu. I am on Fedora 37 (copyq-7.0.0-1.fc37.x86_64) and have the same log entries and CopyQ does not store anything at all.

hluk commented 1 year ago

AFAIK Ubuntu on Wayland does not support clipboard monitoring. Clipboard manager would need to be a Gnome Shell extension.

Possible workaround is to start CopyQ in XWayland mode: https://copyq.readthedocs.io/en/latest/known-issues.html#on-linux-global-shortcuts-pasting-or-clipboard-monitoring-does-not-work

env QT_QPA_PLATFORM=xcb copyq
alaendle commented 1 year ago

@hluk - Many thanks - have not tested extensively, but on a first look the suggested workaround solves my problem 👍 .

Hennie-git commented 1 year ago

AFAIK Ubuntu on Wayland does not support clipboard monitoring. Clipboard manager would need to be a Gnome Shell extension.

Possible workaround is to start CopyQ in XWayland mode: https://copyq.readthedocs.io/en/latest/known-issues.html#on-linux-global-shortcuts-pasting-or-clipboard-monitoring-does-not-work

env QT_QPA_PLATFORM=xcb copyq

This worked for me, just I cant drag items to other tabs .

black-snow commented 1 year ago

So, this is really an issue with Wayland? It's missing a feature?

dimisjim commented 11 months ago

@hluk's workaround did the work for me:

Exec=env QT_QPA_PLATFORM=xcb /usr/bin/copyq

voltagex commented 6 months ago

Just reporting this is also an issue on Fedora 39.

RealBrandon commented 3 weeks ago

This problem still exists in Fedora 40 with GNOME desktop environment under Wayland session. @hluk's fix works for me as well.