Repository navigation
privacy: stop counting screen captures as camera use - #3428
Merged
bbedward merged 1 commit intoSep 15, 2026
Merged
Conversation
Apps capturing the screen through PipeWire, such as OBS, create a live video input stream, which the camera check counted as camera use. Skip streams tagged with the Screen media role.
bbedward
approved these changes
Sep 15, 2026
| for (let i = 0; i < Pipewire.nodes.values.length; i++) { | ||
| const node = Pipewire.nodes.values[i] | ||
| if (!node || !node.ready) { | ||
| if (!node || !node.ready || node.properties?.["media.role"] === "Screen") { |
Member
There was a problem hiding this comment.
I'd prefer a case insensitive match here, just for robustness i guess in case a client sets it with the incorrect vocabularly. But I'm not sure if that's even relevant in practice so good to merge
bbedward
pushed a commit
that referenced
this pull request
Sep 15, 2026
Apps capturing the screen through PipeWire, such as OBS, create a live video input stream, which the camera check counted as camera use. Skip streams tagged with the Screen media role. (cherry picked from commit 6ecdd6d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The privacy indicator shows the camera as active while OBS captures the screen, even when no camera is in use.
cameraActivecounts any liveStream/Input/Videonode as camera use. An app receiving a PipeWire screen cast creates exactly that node, so the screen capture was reported as the camera. These streams are taggedmedia.role = "Screen", and are now skipped. Streams from a real camera carrymedia.role = "Camera"and are still detected.Type of change
Related issues
Checklist
New user-facing strings are wrapped inN/AI18n.tr()with translator context, reusing existing terms where possibleGo changes: ranN/Amake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsI have opened a corresponding pull request in dlx-docs to document any new behaviors: https://github.com/AvengeMedia/DankLinux-DocsN/A