Skip to content

Conversation

archisman-panigrahi
Copy link
Collaborator

@archisman-panigrahi archisman-panigrahi commented Oct 5, 2025

Sorry, not ready yet

This PR would fix #644. Here I am using pipewire to check if some app is sharing screen. I verified in Kubuntu 24.04 (KDE 5.27+Wayland) that when I share screen in Google Meet (Firefox), SafeEyes doesn't show breaks.

I am not completely sure if the dependency checker is working properly (this is the first time I am writing a SafeEyes plugin). Any feedback is welcome. Some people may want to not use piprewire and use pulseaudio instead, and we cannot support them, but we should not force them to install pipewire. So, pipewire should be an optional dependency.

Disclaimer: The code was co-authored with copilot.

@archisman-panigrahi archisman-panigrahi changed the title Screen share stop breaks Disable breaks while sharing screen Oct 5, 2025
@archisman-panigrahi
Copy link
Collaborator Author

archisman-panigrahi commented Oct 5, 2025

@hartwork I would be happy to know your feedback on this. Sorry, not ready yet.

@archisman-panigrahi archisman-panigrahi marked this pull request as draft October 5, 2025 19:38
@archisman-panigrahi
Copy link
Collaborator Author

Turns out safeeyes already did not show any breaks while screen sharing in KDE 5.27. That is probably thanks to #727. I will check how my PR works in other environments

Copy link
Collaborator

@deltragon deltragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do like this approach a lot.
It has some downsides: It only works with pipewire, I don't think pulseaudio has an equivalent to this. It also does not work within Flatpaks.
I think we should caution these issues, that this plugin may not work on all desktops/distributions/environments. But I do think this is a good stop-gap, and props for coming up with the pipewire hack.

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

Successfully merging this pull request may close these issues.

Disable when sharing screen

2 participants