Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between 'App' and 'User' initiated clipboard actions possible? #3

Open
SjoerdV opened this issue May 28, 2022 · 3 comments

Comments

@SjoerdV
Copy link

SjoerdV commented May 28, 2022

Really interested in this concept, thanks for calling some attention to it.

I am wondering though, would it be possible to discern between user initiated paste actions through keyboard commands/mouse actions and the likes AND apps trying to get clipboard data on their own without user initiative?

If so it might be possible to allow the first but block the second, system-wide. Right?

Maybe even blocking access to the clipboard api by default for everything and then opening it for a fraction of a second when 'user input device' commands are detected and closing it up again when done.

@dethos
Copy link
Owner

dethos commented May 30, 2022

It would be a great feature to have indeed. However I'm not sure if it is possible (at least with the available X API and without the "access watcher" app becoming too intrusive), it will require a bit more research.

I'm currently exploring another direction, which is allowing the user to decide which apps can access the clipboard and those that need to be blocked. While simpler, it definitely creates more noise than what you are suggesting.

@SjoerdV
Copy link
Author

SjoerdV commented May 30, 2022

Yeah well, having both a whitelist and a blacklist to maintain seems like a lot of work.

I also saw some ideas about a 'clipboard sandbox' for each app so you can freely copy stuff within one App, but having multiple clipboards doesn't seem a very good approach and escaping these clipboard sandboxes should be possible defeating the entire purpose.

Something equivalent for browsers is already available btw: https://rawsec.ml/en/disable-clipboard-events/: why can't we have that in the Linux kernel ;-)

Off topic:

Another related issue is that all running/active apps can always record every keystroke (or other user input) at all times.
I would like to see only the current 'foreground' app a user has focus on (+ signed system executables/daemons like the global hotkeys app of course) have access to that...

The amount of security/privacy problems in this cloud/appified world are catching up to old school OS paradigms like a Linux kernel. It sure looks like a can of worms to me.

Anyway, thanks for your consideration! If I triggered you to do a little brainstorming, go right ahead.

@noraj
Copy link

noraj commented Jan 11, 2023

Something equivalent for browsers is already available btw: https://rawsec.ml/en/disable-clipboard-events/: why can't we have that in the Linux kernel ;-)

https://blog.raw.pm/en/disable-clipboard-events/, old domain is dead

Repository owner deleted a comment from hyassine1 Mar 7, 2024
Repository owner deleted a comment from hyassine1 Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants