CopyQ icon indicating copy to clipboard operation
CopyQ copied to clipboard

Overwrite of pinned items

Open jcmil101 opened this issue 5 months ago • 8 comments

Just updated to 11.0.0 (Win11 24H2 26100.4946) When copying, the data gets added to the top pinned field & to a place further down the list. Sometimes this will be added to the existing data (merged), others it overwrites completely. Currently as I have items 1 & 2 pinned, 1 gets overwritten & then duplicated at 3 - this latter being the expected behavior. This was an update from 10.x & existing unpinned saved data seems unaffected.

jcmil101 avatar Aug 27 '25 17:08 jcmil101

I had a similar thing happening. Do you have the command below or any other commands that use setData ? -

https://github.com/hluk/copyq-commands/blob/master/Application/remove-background-and-text-colors.ini

AlexW-13 avatar Aug 27 '25 23:08 AlexW-13

I had a similar thing happening. Do you have the command below or any other commands that use setData ? -

https://github.com/hluk/copyq-commands/blob/master/Application/remove-background-and-text-colors.ini

I am only using the built-in functions ATM. I am not invoking those with formatting edits etc intentionally either. Just RMB /copy or ctrl+c etc.

jcmil101 avatar Aug 28 '25 09:08 jcmil101

I cannot reproduce this. Can you share logs (F12 shortcut)?

Not entirely sure if this can cause the problem, but can you also share the order of the plugins in Item configuration tab in Preferences?

Here is what I see: Image

hluk avatar Oct 04 '25 05:10 hluk

copyq.zip

Hi Lukas, Thanks for the reply. I so far did a full uninstall/install ~5 times, loaded my current backup & found that I had a series of problems. This included the overwriting & displaying data different to the contents of the save - which would then result in erroneous pastes & loss of items. The item position in the list could also change inexplicably.

The install is the standard package - no extra scripts or plugins - normal installation, all should be 'default'. My Items prefs order is different from yours & when trying to take a screen shot, the prog window & prefs dialog disappears (?!) (must be the overlay as nothing I've tried will capture that dialog). CopyQ always minimizes when unfocused despite prefs. CopyQ has full admin permissions & is whitelisted in the AV. Items Order is -

  • Images
  • Enc
  • FakeVIM
  • Notes
  • Pinned
  • Sync
  • Tags
  • Test
  • I didn't reorder these.

In trying backups, I suspected that it was the recent config that was at fault but do not see why as it is using only the original standard package files. I can load some of the old saved tabs OK. I haven't tested every saved element individually however.

I decided to kill the install incl. reg clean & use v12.01 without any backups & that is OK. This does mean I lost a lot of saved items, but ATM 12.01 is running OK with older or partial tab backups loaded. When the most recent backup of all elements is loaded, I get the error.

Adding the recent 'faulty' full backup to a previously working 12.01 install generates the error. F12 only shows logs from time up to yesterday. I recreated the error today ~1700, so I attach all the logs from the C:/Users/<_>/AppData/Roaming/copyq/copyq/ dir, see attached.

HTH


From: Lukas Holecek @.> Sent: 04 October 2025 06:59 To: hluk/CopyQ @.> Cc: jcmil101 @.>; Author @.> Subject: Re: [hluk/CopyQ] Overwrite of pinned items (Issue #3147)

[https://avatars.githubusercontent.com/u/38054?s=20&v=4]hluk left a comment (hluk/CopyQ#3147)https://github.com/hluk/CopyQ/issues/3147#issuecomment-3367935644

I cannot reproduce this. Can you share logs (F12 shortcut)?

Not entirely sure if this can cause the problem, but can you also share the order of the plugins in Item configuration tab in Preferences?

Here is what I see:

image.png (view on web)https://github.com/user-attachments/assets/c7019549-453c-46ce-b989-863149c06232

— Reply to this email directly, view it on GitHubhttps://github.com/hluk/CopyQ/issues/3147#issuecomment-3367935644, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYIFO4KPUHQ52J4IVV22CBT3V5O3ZAVCNFSM6AAAAACE63YH5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNRXHEZTKNRUGQ. You are receiving this because you authored the thread.Message ID: @.***>

jcmil101 avatar Oct 04 '25 16:10 jcmil101

Here's my order, I didn't change it as well so I assume it's the default. Just in case I'm going to try changing my order to match yours hluk.

Image

TheOnlyOnlyName avatar Oct 04 '25 17:10 TheOnlyOnlyName

Thanks for the details.

CopyQ has full admin permissions & is whitelisted in the AV.

Not sure if I fully understand, but CopyQ is expected to run under a normal user - not admin/root with any special permissions. Running with elevated permissions would mean that the data files CopyQ creates will not be accessible by normal user - this could cause problems.

About the plugin order: It should not change behavior, but it changes the order in which items/tabs are processed. Anyway, I tested it with the default plugin order and still cannot see any issues with pinned items.

Do you use the Encryption plugin? I see some errors in logs from gpg process, which is used to initialize and handle the item/tab encryption (it could be just some failing initial checks for gpg installation). If you do not use the plugin, disable it to avoid the errors (uncheck the checkbox next to Encryption in the Item config tab).

hluk avatar Oct 05 '25 07:10 hluk

Windows permissions will reflect admin installation but I didn't specifically alter it beyond that. To clarify, it was installed using admin a/c, I've assumed that would ensure it didn't lose access to sth - so full permissions as far as my admin setup & a/c access goes. I chose the recommended 'all users' for it's own setup.

I am always using admin environment & I routinely use elevated prompts. I'm the only user - highly unlikely that it would be accessed in a non-admin environment. This didn't affect CopyQ previously.

The AV routines require full CopyQ whitelisting as every process & write is being monitored, as you know. I do have GPG installed but do not use it with CopyQ, GPG has a limited scope as far as daily tasks go. Unchecked now.


From: Lukas Holecek @.> Sent: 05 October 2025 08:27 To: hluk/CopyQ @.> Cc: jcmil101 @.>; Author @.> Subject: Re: [hluk/CopyQ] Overwrite of pinned items (Issue #3147)

[https://avatars.githubusercontent.com/u/38054?s=20&v=4]hluk left a comment (hluk/CopyQ#3147)https://github.com/hluk/CopyQ/issues/3147#issuecomment-3368826493

Thanks for the details.

CopyQ has full admin permissions & is whitelisted in the AV.

Not sure if I fully understand, but CopyQ is expected to run under a normal user - not admin/root with any special permissions. Running with elevated permissions would mean that the data files CopyQ creates will not be accessible by normal user - this could cause problems.

About the plugin order: It should not change behavior, but it changes the order in which items/tabs are processed. Anyway, I tested it with the default plugin order and still cannot see any issues with pinned items.

Do you use the Encryption plugin? I see some errors in logs from gpg process, which is used to initialize and handle the item/tab encryption (it could be just some failing initial checks for gpg installation). If you do not use the plugin, disable it to avoid the errors (uncheck the checkbox next to Encryption in the Item config tab).

— Reply to this email directly, view it on GitHubhttps://github.com/hluk/CopyQ/issues/3147#issuecomment-3368826493, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYIFO4O6FBIKKL7C2A3FJGL3WDB4RAVCNFSM6AAAAACE63YH5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNRYHAZDMNBZGM. You are receiving this because you authored the thread.Message ID: @.***>

jcmil101 avatar Oct 05 '25 09:10 jcmil101

I am now seeing < DATA > as the output when copying some strings from CQ. Seems mostly to be text from web pages that I use the 'erase style' tool on. Log attached. cq 11-10-25.zip

jcmil101 avatar Oct 11 '25 15:10 jcmil101