-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
nixos/sway: workaround idle inhibit not working in Firefox #348792
Conversation
@ofborg test sway |
Thanks for the review request, I do not use Sway as such I can not test it. This should get some attention from |
So is this like a "hack" to make Firefox always inhibit idle when playing audio/video, regardless of the application window state? Something like I think we have to be careful, to no go beyond user expectations regarding idle behavior. If Firefox is supposed to always inhibit idle while playing video's (or even just audio) regardless of application windows state, and this PR fixes that, then i think it's an OK change. Otherwise, we might have to create an extra option to toggle this new behavior. |
This PR makes idle inhibit work in Firefox like expected, e.g. the screen will not lock when playing a video. After applying this PR, this can be tested by starting a video in a tab, switching to the terminal to enter the following command, then focus back to Firefox:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/no-sleep-while-firefox-is-running/54755/5 |
in Firefox Source: https://www.reddit.com/r/swaywm/comments/1dqud2a/how_to_get_firefox_to_inhibit_idle_when_watching/ > Firefox supports the Wayaland inhibit protocol, but it attempts to use the DBus interfaces first. However, the gtk portal has an issue where it returns success even though the wlr portal/sway doesn't have an implementation for the inhibit method, see NixOS#465.
4ff6f76
to
7e7a069
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested that this works as intended.
Successfully created backport PR for |
@teutat3s This is incorrect. |
Yes, only apply it to |
What is the usecase to not have gtk and wlr without using mkForce? |
Things done
Related to #57602 (comment).
Source: https://www.reddit.com/r/swaywm/comments/1dqud2a/how_to_get_firefox_to_inhibit_idle_when_watching/
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.