pop-os / cosmic-epoch

Next generation Cosmic desktop environment
1.74k stars 55 forks source link

[Suggestion/Feature Request] Consider whether to expose window events on Wayland #100

Open skewballfox opened 1 year ago

skewballfox commented 1 year ago

This isn't exactly a feature request because whether or not this should be supported is probably something that is debatable. There is a legitimate use case for an application having access to window events, such as what window is in focus, where windows are being rendered, whether the user is currently inactive, etc. To give an example of an app that currently makes use of this data check out activity watch, ( I also recommend checking out the issue on wayland support, and the SO post linked from the FAQ.

here are a few relevant protocols, most are linked somewhere in the two recommeded pages above:

Drakulix commented 1 year ago

Access to similar protocols will most likely be severely restricted in cosmic by default due to security concerns.

But we plan to support protocols similar to the ones linked. We are working with upstream to standardize these protocols.

Additionally we plan to support the

We are using these protocols ourselves internally in our desktop environment, so support in general is not in question, but most of those will require some sort of privileged access due to the nature of information exposed here. As far as I understand your use case, collecting sensitive information is very much the goal and I hope we can provide some way for users to explicitly allow such access for selected programs.

The story of authentication on the wayland-protocol layer is sadly not very well defined. So please understand, that while we view such a feature as desirable and the use-case to be perfectly valid, it is not the highest priority to sort out these things right now and a proper solution will likely take some time.

skewballfox commented 1 year ago

I'm glad to hear that

The story of authentication on the wayland-protocol layer is sadly not very well defined. So please understand, that while we view such a feature as desirable and the use-case to be perfectly valid, it is not the highest priority to sort out these things right now and a proper solution will likely take some time.

no worries, it's definitely one of those things that is best done perfectly or not at all. Let's face it, if you take explicit user opt in out of the equation it is spyware. but, in my view, the potential positive value in enabling this type of application is pretty immense. to give an example: time restrictions on specific applications, for those of us with executive function issues.