I have used copyq for a while now, and have been pleased with its performance. It seems to have stopped working. I am using UBUNTU 23.04. I have tried reinstalling it, but to no avail. Anyone got any thoughts?
Good to see you back @david.bradford
Interesting because I also faced the same situation after upgrading to Ubuntu 23.04.
The culprit is Wayland which is surprising because I was using it earlier as well. Still, there is a fix.
First step: close any running instance of CopyQ
Now, from a terminal, run it like this:
env QT_QPA_PLATFORM=xcb copyq
Check if the clipboard history is saved now. If CopyQ is working properly now, go to next step.
Step 2: Since CopyQ is working when it is run with QT_QPA_PLATFORM environment variable set, you should make the change permanent so that when Copy auto starts, it sets the required variable.
Make sure that CopyQ is set to run automatically when system boots. In CopyQ Preference, check the Autostart option.
Now, create a backup of the desktop config file (just for the sake of it):
cp ~/.config/autostart/copyq.desktop ~/.config/autostart/copyq.desktop~
Now, open this file for editing in Nano or Gedit. I’ll use Gedit so that it is easier for anyone:
gedit ~/.config/autostart/copyq.desktop
At the bottom of this file, you’ll see a line starting with Exec.
Change this line to:
Exec=env QT_QPA_PLATFORM=xcb copyq
Step 3: save the file and reboot your system.
CopyQ should auto start and work properly now.
This is mentioned in their documentation.
Enjoy it ![]()
Hi Abhi
Thanks for this and apologies for not getting back to you sooner. I had forgotten I had posted this and was reminded about it when I received Foss Weekly #23.52 with its article about Clipboard Managers.
All is well now.
Keep up the good work
David
Many thanks for clear description. Worked like a charm! (on Ubuntu 24.04 Wayland)
Im facing the same problem but when launched with env QT_QPA_PLATFORM=xcb copyq it correctly save to clipboard and i can see it with Super-V (in the popup).
The problem is that is impossible to paste then.
If i run simply Ctrl-V it paste correctly but not from copyq.
OS info:
Ubuntu 24.04.3 LTS - Release 24.04 - noble - using Wayland
PS:
I already tried to disable and re enable the options relative to Paste in the current window from both tray and history settings without success…
Hi @bcpte ,
Did you do Abhishek’s step 2?
CopyQ has to be running
Regards
Neville
He said this and i didn’t try the step 2 cause it is not really working properly considering that paste is not working…
I think you misread Abhishek.
Copyq is not working, so you should do Step 2.
Copyq has a server daemon ( ie a service)
You can see if the daemon is running with
ps ax | grep copy
it should show as a running process.
Until you can see that process running, the copyq client will not work.
If the copyq server daemo is not running you can start it with
copyq --start-server
but you really want to to autostart every time you boot, and that is what step2 does.
After doing step2 , you should reboot for it to take effect.
No wait, this is his reply:
Step 2: Since CopyQ is working when it is run with QT_QPA_PLATFORM environment variable set, you should make the change permanent so that when Copy auto starts, it sets the required variable.
(sorry but I can’t quote it)
What i mean is that my CopyQ is not working when run either with QT_QPA_PLATFORM… it only started, but it is not copy/paste correctly.
Is the copyq server daemon running?
You can start the client anytime, but it will not work if the server daemon is not running.