A bug in pasting files with the popular CopyQ Clipboard manager

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
SARI
Posts: 12
Joined: 12 Feb 2026 22:28

A bug in pasting files with the popular CopyQ Clipboard manager

Post by SARI »

A bug in pasting files with the popular CopyQ Clipboard manager https://github.com/hluk/CopyQ

For Windows File Explorer, CopyQ pastes files from its history, which were copied or cut. But for XYplorer, the pasting is not done, but only by drag and drop method and even that is only copying and not cutting. And I emphasize that this is not a bug in CopyQ, because with Windows File Explorer everything is done correctly.

The latest version of XYplorer 64 and CopyQ, Windows 11 25H2.

For the file copy manager there, please see https://copyq.readthedocs.io/en/latest/ ... le-manager

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by admin »

Thanks for the report.

SARI
Posts: 12
Joined: 12 Feb 2026 22:28

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by SARI »

admin wrote: 24 Feb 2026 12:38 Thanks for the report.
???

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by admin »

Run this script from the XYplorer address bar after you copied your files using CopyQ: text <get clipboardformats <crlf>>; (Take care that you copy/paste the script to the XYplorer address bar *before* you copy the files, else you will change the clipboard). What is returned?

SARI
Posts: 12
Joined: 12 Feb 2026 22:28

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by SARI »

admin wrote: 11 Mar 2026 12:13 Run this script from the XYplorer address bar after you copied your files using CopyQ: text <get clipboardformats <crlf>>; (Take care that you copy/paste the script to the XYplorer address bar *before* you copy the files, else you will change the clipboard). What is returned?
CF_HDROP
FileName
FileNameW
Preferred DropEffect
---------------------------------------------------------------
After copying in Windows File Explorer I get:
DataObject
Shell IDList Array
DataObjectAttributes
DataObjectAttributesRequiringElevation
Shell Object Offsets
Preferred DropEffect
AsyncFlag
CF_HDROP
FileName
FileContents
FileNameW
FileGroupDescriptorW
Ole Private Data

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by admin »

Looks totally normal. I don't see why pasting would not work. :?

SARI
Posts: 12
Joined: 12 Feb 2026 22:28

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by SARI »

admin wrote: 11 Mar 2026 20:15 Looks totally normal. I don't see why pasting would not work. :?
after you copied your files using CopyQ
COPYQ does not copy files, the copy is a normal Windows copy, but COPYQ keeps a history of all copies made so that you can paste copies made in the past. In principle, it works like WIN+V, only in a more comprehensive way, in that it can also store copied or cut files in the history. As for Windows File Explorer, it works great.

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by admin »

So you trigger the paste from COPYQ. But how does COPYQ make the connection to XYplorer?

SARI
Posts: 12
Joined: 12 Feb 2026 22:28

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by SARI »

admin wrote: 12 Mar 2026 09:06 So you trigger the paste from COPYQ. But how does COPYQ make the connection to XYplorer?
I really don't know, this is a question for the developers, maybe you can ask the AI?
I am attaching here the history content in COPYQ after copying a file in XYPLORER and after the same copy from Windows File Explorer. Please note that after copying from XYPLORER "Shell IDList Array" format is missing, and if the problem is not with this format then there is probably a bug in XYPLORER that does not send correct information to the other formats.

XYPLORER:
Formats:
text/plain
text/uri-list
application/x-qt-windows-mime;value="FileNameW"
application/x-qt-windows-mime;value="Preferred DropEffect"

Windows File Explorer:
Formats:
text/plain
text/uri-list
application/x-qt-windows-mime;value="FileNameW"
application/x-qt-windows-mime;value="Preferred DropEffect"
application/x-qt-windows-mime;value="Shell IDList Array"

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by admin »

Okay, I'll find some time to download this thing and make some tests.

SARI
Posts: 12
Joined: 12 Feb 2026 22:28

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by SARI »

admin wrote: 12 Mar 2026 19:54 Okay, I'll find some time to download this thing and make some tests.
Thank you very much, I'm sure it will also help others, COPYQ is a popular application Star 11.3k. I wanted to add that COPYQ is open source. You can ask the AI ​​to go through its code on GITHUB and give you the information you need.

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by jupe »

This setting is by default enabled, but is there a chance you disabled it?:

Configuration | Other | Shell Integration | Drag and Drop | Extended compatibility for clipboard and drag and drop

SARI
Posts: 12
Joined: 12 Feb 2026 22:28

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by SARI »

jupe wrote: 12 Mar 2026 20:29 This setting is by default enabled, but is there a chance you disabled it?:

Configuration | Other | Shell Integration | Drag and Drop | Extended compatibility for clipboard and drag and drop
I didn't understand the question.

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by admin »

1) Does COPYQ work if that setting is ticked?

2) I'm testing it now and paste works just fine. COPYQ is not even involved when I paste. So, I think you should explain as detailed as possible what you are doing.

SARI
Posts: 12
Joined: 12 Feb 2026 22:28

Re: A bug in pasting files with the popular CopyQ Clipboard manager

Post by SARI »

admin wrote: 13 Mar 2026 08:27 1) Does COPYQ work if that setting is ticked?

2) I'm testing it now and paste works just fine. COPYQ is not even involved when I paste. So, I think you should explain as detailed as possible what you are doing.
This setting does not help, whether it is checked or not. The only thing that can be done is as I mentioned above only with the drag and drop method from the COPYQ history clipboard and that is whether this setting is checked or not. Even with the drag and drop method, it does not remember that there was a cut operation and treats it as a paste operation. Normal paste from the COPYQ clipboard is not performed at all.
Regarding the question of how COPYQ is supposed to paste to XYPLORER, I am not a developer, but what I managed to understand is that when you paste an item from the COPYQ history, it sends the contents of that item to the Windows clipboard and then simulates pasting as if you pressed CTRL+V, and in our case, I see that it sends to the clipboard information of a file and not of regular text and when it simulates later pressing CRTL+V, XYPLORER does not understand that a file was sent to it, but the Windows file explorer understands that a file was sent to it, so there it works.
Someone told me that as far as he remembers, a few years ago, this problem didn't exist in XYPLORER.
I'm testing it now and paste works just fine. COPYQ is not even involved when I paste
I assume you are not pasting from the COPYQ history. Please try copying a file and then copying just text so that now the Windows clipboard stores just text, and now try pasting the file you copied from the COPYQ history.

Post Reply