Copyq: Clear clipboard on exit

Created on 2 Jan 2019  路  16Comments  路  Source: hluk/CopyQ

Feature Request: create an option that allows to specify that the clipboard history has to be deleted when the program is being closed/shutdown.

Most helpful comment

Once the "Store Items" checkbox is disabled (unchecked), can I disable syncing with an empty path?

Yup, no need for the workaround anymore.

All 16 comments

You can keep the tab content only in memory if you set empty synchronization path for it.

One problem is that it will also get cleaned after the "unload tabs" interval specified in configuration. You can set it to 0, but it works for all tabs and it's nice to have this set if you use many items and tabs to free some memory.

image

To implement this properly, I think I would need to implement tab-specific configuration with some nice UI.

I remember discussing this years ago. See #59 which came out of the following thread:
https://github.com/hluk/CopyQ/issues/55#issuecomment-18924890

I control the life of and access to saved clipboard items by setting a maximum limit for the number of saved items, encrypting the clipboard history tab and setting the interval after which tabs unload. (I don't sync tabs with files.)

@akwala Thanks for reminding me about #59. I think it can be now easily implemented adding new script functions -- the new "script" commands can override them. I just hope that won't affect performance badly.

One problem is that running anything on application exit can be unreliable. The app can be killed or crash and your exit-code won't be executed.

I need this functionality as well.

I tried the workaround by @hluk (thank you!), and to help others that might try it I want to mention that the default clipboard is &clipboard and not clipboard.

IOW, you need to sync &clipboard with nothing for the default clipboard contents to be erased with the copyq session is terminated.

Hopefully this functionality will be integrated without needing the workaround. :)

I see this issue is now closed. :) How is this functionality enabled without using the "empty sync path" trick?

@Gitoffthelawn You can now disable storing items to disk for specific tabs:

  1. open configuration,
  2. go to Tabs configuration tab,
  3. select a tab from list,
  4. disable "Store Items" checkbox,
  5. apply configuration.

Thank you so much! I had a hunch that was it, but I wasn't sure. :)

Once the "Store Items" checkbox is disabled (unchecked), can I disable syncing with an empty path?

Once the "Store Items" checkbox is disabled (unchecked), can I disable syncing with an empty path?

Yup, no need for the workaround anymore.

Thank you! :)

Hello,

go to Tabs configuration tab, select a tab from list, disable "Store Items" checkbox

Where's that setting now ?

Thanks

The option is still in the Tabs config tab -- but it was renamed to "Save Items".

Here are the configuration tabs I see : general, layout, history, tray, notifications, items, shortcuts, appearance.
I see no "tabs" tab
Thanks

@KaKi87 You need to install more recent version of CopyQ.

I'm using Linux Mint 19.3 and APT installed me version 3.2.0.1

@KaKi87 Maybe you can get newer version from PPA or using Flatpak?

See: https://copyq.readthedocs.io/en/latest/installation.html

It worked, thanks !
However, I've seen packages firstly requiring a PPA and then not requiring it anymore, but never the other way around.
Why did it changed ?
Thanks
(PS : this is my last off-topic message, I promise. :wink:)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bsucker98 picture bsucker98  路  4Comments

aksr picture aksr  路  9Comments

ujay68 picture ujay68  路  9Comments

sebflipper picture sebflipper  路  8Comments

Gitoffthelawn picture Gitoffthelawn  路  8Comments