| 1 |
Known Issues |
| 2 |
============ |
| 3 |
|
| 4 |
This document lists known commonly occurring issues and possible solutions. |
| 5 |
|
| 6 |
.. _known-issue-window-tray-hidden: |
| 7 |
|
| 8 |
On Windows, tray icon is hidden/repositioned after restart |
| 9 |
---------------------------------------------------------- |
| 10 |
|
| 11 |
With current official builds of CopyQ, the tray icon position and hide/show |
| 12 |
status are not restored after the application is restarted or after logging in. |
| 13 |
|
| 14 |
**Workaround** is to use CopyQ binaries build with older Qt framework version (Qt |
| 15 |
5.9); these are provided in latest comments in the issue link below. |
| 16 |
|
| 17 |
.. seealso:: |
| 18 |
|
| 19 |
`Issue #1258 <https://github.com/hluk/CopyQ/issues/1258>`__ |
| 20 |
|
| 21 |
.. _known-issue-windows-console-output: |
| 22 |
|
| 23 |
On Windows, CopyQ does not print anything on console |
| 24 |
---------------------------------------------------- |
| 25 |
|
| 26 |
On Windows, you may not see any output when executing CopyQ in a |
| 27 |
console/terminal application (PowerShell or cmd). |
| 28 |
|
| 29 |
**Workarounds:** |
| 30 |
|
| 31 |
* Use different console application: Git Bash, Cygwin or similar. |
| 32 |
* Use Action dialog in CopyQ (``F5`` shortcut) and set "Store standard output" |
| 33 |
to "text/plain" to save the output as new item in current tab. |
| 34 |
* Append ``| Write-Output`` to commands in PowerShell: |
| 35 |
|
| 36 |
.. code-block:: powershell |
| 37 |
|
| 38 |
& 'C:\Program Files\CopyQ\copyq.exe' help | Write-Output |
| 39 |
|
| 40 |
.. seealso:: |
| 41 |
|
| 42 |
`Issue #349 <https://github.com/hluk/CopyQ/issues/349>`__ |
| 43 |
|
| 44 |
.. _known-issue-macos-paste-after-install: |
| 45 |
|
| 46 |
On macOS, CopyQ won't paste after installation/update |
| 47 |
----------------------------------------------------- |
| 48 |
|
| 49 |
CopyQ is not signed app, you need to grant Accessibility again when it's |
| 50 |
installed or updated. |
| 51 |
|
| 52 |
**To fix this**, try following steps: |
| 53 |
|
| 54 |
1. Go to System Preferences -> Security & Privacy -> Privacy -> Accessibility |
| 55 |
(or just search for "Allow apps to use Accessibility"). |
| 56 |
2. Click the unlock button. |
| 57 |
3. Select CopyQ from the list and remove it (with the "-" button). |
| 58 |
|
| 59 |
.. seealso:: |
| 60 |
|
| 61 |
- `Issue #1030 <https://github.com/hluk/CopyQ/issues/1030>`__ |
| 62 |
- `Issue #1245 <https://github.com/hluk/CopyQ/issues/1245>`__ |
| 63 |
|
| 64 |
.. _known-issue-gnome: |
| 65 |
|
| 66 |
On GNOME, new clipboard is not stored |
| 67 |
------------------------------------- |
| 68 |
|
| 69 |
The app requires the CopyQ Clipboard Monitor GNOME Shell extension to be |
| 70 |
enabled so it can watch clipboard changes and store them. The extension is |
| 71 |
shipped with CopyQ 14.0.0 and later. |
| 72 |
|
| 73 |
.. note:: |
| 74 |
|
| 75 |
The GNOME extension is only available when CopyQ is installed on the system |
| 76 |
(e.g. from a package manager). It will **not** work when running CopyQ as a |
| 77 |
Flatpak or AppImage because the extension cannot be registered with the |
| 78 |
GNOME Shell from a sandboxed environment. |
| 79 |
|
| 80 |
.. seealso:: |
| 81 |
|
| 82 |
:ref:`known-issue-wayland` |
| 83 |
|
| 84 |
.. _known-issue-wayland: |
| 85 |
|
| 86 |
On Linux, some features do not work under Wayland |
| 87 |
-------------------------------------------------- |
| 88 |
|
| 89 |
When running CopyQ under a **Wayland** compositor, some features may not work |
| 90 |
depending on the desktop environment and the protocols it supports. |
| 91 |
|
| 92 |
**Global shortcuts** work natively if the desktop environment provides |
| 93 |
Portal support (``xdg-desktop-portal``). |
| 94 |
|
| 95 |
**Clipboard monitoring** works natively if the compositor supports the required |
| 96 |
Wayland protocol. This works on KDE Plasma, Sway, Hyprland and other |
| 97 |
wlroots-based compositors. On **GNOME**, this protocol is not supported, but |
| 98 |
CopyQ ships a GNOME Shell extension that provides clipboard monitoring instead |
| 99 |
(see :ref:`known-issue-gnome`). If clipboard monitoring does not work with |
| 100 |
either method, see :ref:`wayland-xwayland-fallback` below. |
| 101 |
|
| 102 |
Querying **state of keyboard modifiers** (for example pressed Shift, Ctrl etc. |
| 103 |
which can be useful for some custom commands) and **mouse position** (useful |
| 104 |
for positioning menus) **does not work** on Wayland. |
| 105 |
|
| 106 |
See the subsections below for other fixes. |
| 107 |
|
| 108 |
Workaround: Wayland Support command |
| 109 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 110 |
|
| 111 |
This can fix (depending on the desktop environment and installed tools): |
| 112 |
|
| 113 |
- pasting from CopyQ and issuing copy commands to other apps |
| 114 |
- screenshot functionality |
| 115 |
- retrieving and matching window titles |
| 116 |
|
| 117 |
Install the `Wayland Support |
| 118 |
<https://github.com/hluk/copyq-commands/tree/master#wayland-support>`__ |
| 119 |
command to fix the features. It also requires some external tools to be |
| 120 |
installed on the system. |
| 121 |
|
| 122 |
.. _wayland-xwayland-fallback: |
| 123 |
|
| 124 |
Workaround: running under XWayland |
| 125 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 126 |
|
| 127 |
This can fix: |
| 128 |
|
| 129 |
- clipboard monitoring |
| 130 |
- setting and restoring window position (only window size is supported by most |
| 131 |
Wayland compositors natively) |
| 132 |
|
| 133 |
Setting ``QT_QPA_PLATFORM=xcb`` environment variable forces CopyQ to run under |
| 134 |
XWayland mode. Unfortunately, it can cause clipboard monitoring to fail when |
| 135 |
the main window is closed, X11 connection errors, and other issues depending on |
| 136 |
the XWayland implementation. |
| 137 |
|
| 138 |
To start CopyQ under XWayland, use: |
| 139 |
|
| 140 |
.. code-block:: bash |
| 141 |
|
| 142 |
env QT_QPA_PLATFORM=xcb copyq |
| 143 |
|
| 144 |
If CopyQ autostarts, you can change the ``Exec=...`` line in |
| 145 |
``~/.config/autostart/copyq.desktop``:: |
| 146 |
|
| 147 |
Exec=env QT_QPA_PLATFORM=xcb copyq |
| 148 |
|
| 149 |
For the **Flatpak** application, see `this workaround |
| 150 |
<https://github.com/hluk/CopyQ/issues/2948#issuecomment-2614271330>`__. |
| 151 |
|
| 152 |
.. note:: |
| 153 |
|
| 154 |
Mouse selection will still work only if the source application itself |
| 155 |
supports it. |
| 156 |
|
| 157 |
.. seealso:: |
| 158 |
|
| 159 |
`Issue #27 <https://github.com/hluk/CopyQ/issues/27>`__ |
| 160 |
|
| 161 |
`Issue #3587 <https://github.com/hluk/CopyQ/issues/3587>`__ |
| 162 |
— ``QT_QPA_PLATFORM=xcb`` can break clipboard monitoring |
| 163 |
|
| 164 |
|
| 165 |
.. _known-issue-gnome-busy-cursor: |
| 166 |
|
| 167 |
On GNOME, busy cursor after selecting tray menu item |
| 168 |
---------------------------------------------------- |
| 169 |
|
| 170 |
When using the AppIndicator/KStatusNotifierItem GNOME Shell extension, selecting |
| 171 |
an item from the CopyQ tray menu may cause a busy cursor for about 15 seconds. |
| 172 |
This is a bug in the extension — it triggers startup notification unconditionally |
| 173 |
without checking the application's ``StartupNotify`` desktop entry key. |
| 174 |
|
| 175 |
.. seealso:: |
| 176 |
|
| 177 |
- `Issue #3586 <https://github.com/hluk/CopyQ/issues/3586>`__ |
| 178 |
- `AppIndicator extension issue #443 |
| 179 |
<https://github.com/ubuntu/gnome-shell-extension-appindicator/issues/443>`__ |
| 180 |
Scripting command "copy()" fails |
| 181 |
-------------------------------- |
| 182 |
|
| 183 |
The command ``copy()`` sends the Ctrl+C shortcut to the current window. |
| 184 |
This can fail depending on the active application. |
| 185 |
If CopyQ won't detect a clipboard change, it throws an exception. |
| 186 |
The execution then fails with the message ``Failed to copy to clipboard!``. |
| 187 |
|
| 188 |
An alternative under Windows is to use a Powershell script to override the ``copy`` operation |
| 189 |
(see :ref:`faq-share-commands`): |
| 190 |
|
| 191 |
.. code-block:: powershell |
| 192 |
|
| 193 |
[Command] |
| 194 |
Command=" |
| 195 |
copy = function() { |
| 196 |
execute('powershell', '-Command', ` |
| 197 |
Add-Type -AssemblyName System.Windows.Forms; |
| 198 |
Start-Sleep -Milliseconds 300; |
| 199 |
[System.Windows.Forms.SendKeys]::SendWait(\"^c\"); |
| 200 |
Start-Sleep -Milliseconds 300; |
| 201 |
`); |
| 202 |
}" |
| 203 |
IsScript=true |
| 204 |
Name=Override copy() |
| 205 |
|
| 206 |
The delays are added to make sure no focus issues occur and the text is copied to the clipboard. |
| 207 |
|
| 208 |
|
| 209 |
.. _known-issue-focus-stealing: |
| 210 |
|
| 211 |
CopyQ steals keyboard focus when showing window or menu |
| 212 |
------------------------------------------------------- |
| 213 |
|
| 214 |
When CopyQ shows its main window or tray menu (via global shortcut, tray icon |
| 215 |
click, or script), it transfers keyboard focus from the previously active |
| 216 |
window. This can cause side effects in the target application such as: |
| 217 |
|
| 218 |
* File renames aborting (e.g. pressing F2 in file managers) |
| 219 |
* Combo boxes selecting all their content |
| 220 |
* Short-lived widgets dismissing (Start menu, PowerToys, extension dialogs) |
| 221 |
* Application menus closing |
| 222 |
* Auto-hide windows hiding (e.g. ConEmu Quake mode) |
| 223 |
|
| 224 |
.. seealso:: |
| 225 |
- `Issue #3540 <https://github.com/hluk/CopyQ/issues/3540>`__ |
| 226 |
|
| 227 |
Workaround |
| 228 |
^^^^^^^^^^ |
| 229 |
Use global shortcuts to cycle through clipboard history and |
| 230 |
paste without showing the CopyQ window. |
| 231 |
|
| 232 |
The `Cycle Items - Quick |
| 233 |
<https://github.com/hluk/copyq-commands/blob/master/README.md#cycle-items---quick>`__ |
| 234 |
command previews items in notifications and automatically pastes the selected item |
| 235 |
when the shortcut modifier(s) are released―without ever opening the main |
| 236 |
window. |
| 237 |
|
| 238 |
A simpler alternative is to assign a global shortcut to ``next()`` or |
| 239 |
``previous()``. These functions cycle through clipboard history and update the system |
| 240 |
clipboard silently. For example, the following command updates to the next item: |
| 241 |
|
| 242 |
.. code-block:: js |
| 243 |
|
| 244 |
next() |
| 245 |
|
| 246 |
The item can then be pasted with the normal system paste shortcut |
| 247 |
(``Ctrl+V`` or ``Cmd+V``). |