GithubHelp home page GithubHelp logo

Comments (8)

SUPERCILEX avatar SUPERCILEX commented on June 17, 2024 1

Oh wait, I just tried to close this issue and realized this isn't my repo lol. So ignore everything I just said since Tudmotu might want to do this.

from gnome-shell-extension-clipboard-indicator.

SUPERCILEX avatar SUPERCILEX commented on June 17, 2024

You can delete items on reboot and limit the total number of items saved and their storage. Any reason you want Cron job style deletion?

from gnome-shell-extension-clipboard-indicator.

WyskyNet avatar WyskyNet commented on June 17, 2024

It's all about my use case:

  • i rebooting notebook only if some kernel update needs it
  • i am a web developer so i use copy paste more than often :)

So deleting clipboard items after some predefined time (for example 30 minutes) will be better solution than deleting history manually after work... at least in case of some sensitive content.

from gnome-shell-extension-clipboard-indicator.

SUPERCILEX avatar SUPERCILEX commented on June 17, 2024

Ah, that makes sense but isn't going to happen. If people gain access to your machine, you should consider yourself fully compromised. I don't see the point in trying properly delete data and don't wish to focus on that, but if you're concerned you could delete the database file every day and try overwriting it. Though the delete on reboot option doesn't store anything on disk so that seems closer to what you're looking for.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on June 17, 2024

@WyskyNet you want it to be deleted automatically?
What if you are in the middle of work and suddenly all your clipboard items are deleted?

from gnome-shell-extension-clipboard-indicator.

whym avatar whym commented on June 17, 2024

How about deleting the newest item in the clipboard history if it's older than X hours? While it's not perfect (since you can work while not copying anything), I think it's a good enough proxy of detecting the user's continued absence.

Some use cases of this don't require the computer to be compromised. One example I can think of is: the user works on sensitive things using the clipboard, calls it a day (without clearing the clipboard history), starts the next work day with an online meeting, shares the screen, uses the clipboard history, and accidentally shows an old entry from the previous day.

from gnome-shell-extension-clipboard-indicator.

vlagorsse avatar vlagorsse commented on June 17, 2024

I would also love this feature.

It's not exactly about having all the items wiped every now and then, it's about time limiting each entry in the history. Having a time limit based on copying time or even last pasted time for each entry would be perfect for me.

To be honest, 2 hours after having copied something, I think this is preferable to be deleted.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on June 17, 2024

I like this idea. I would definitely be willing to merge a PR.

If anyone would like to work on this:

  • It should be configurable in settings
  • Need to find out if there's a better way to achieve other than setInterval
  • Basically need to keep the timestamp on the ClipboardEntry and then iterate the clipboard every 10 seconds or something and delete expired entries

from gnome-shell-extension-clipboard-indicator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.