How to restart CopyQ from (linux) command line
- Dominant language
- C++
- Stars
- 12.3k
- Forks
- 593
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 9
Description
I am using CopyQ 13.0.0 in Kubuntu 25.10 Operating System: Kubuntu 25.10, KDE Plasma Version: 6.4.5, KDE Frameworks Version: 6.17.0, Qt Version: 6.9.2, Kernel Version: 6.17.0-20-generic (64-bit), Graphics Platform: Wayland.
I back up my CopyQ contents using the "Backup On Exit" command and a simple cron script:
`#!/bin/bash`
`cd /home/chris`
`### stop copyQ to export the current state`
`copyq exit`
`copyq --start-server`
`#copyq`
That "#copyq" at the end is because I can't work out how to get CopyQ to relaunch from that script so I have to remember to relaunch it manually and of course, many mornings, I forget until I have used cut or copy a few times and so have lost all but the last!
What I see if I run that from the console is:
`chris@junokubuntu:~$ ./copyq_stop_start`
`Terminating server.`
`chris@junokubuntu:~$ Warning: [default] QSocketNotifier: Can only be used with threads started with QThread`
and then after I hit carriage return as the prompt does not return:
`Warning: [qt.qpa.wayland] Wayland does not support QWindow::requestActivate()`
I am sure that there are better ways to achieve what I want including a cron script that might stop CopyQ and backup the entire CopyQ installation (but I'd still need to relaunch CopyQ for that). However, I thought I should ask here as I am failing to find illumination searching the web.
I have used CopyQ for many, many years now, on a variety of Linux systems and, I think, Windows. It's one of my most valued pieces of software: thanks!
Chris
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.