Linux inhibit #792
JoelleJS
started this conversation in
Your Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to prevent my pc going to sleep during a rip. Right now I'm using
systemd-inhibitas a wrapper for fre:ac to do this, but this isn't ideal (sleep is prevented whether or not fre:ac is actually ripping).So I'd like to try and add functionality to the Linux build to inhibit sleep (and suspension, and hibernation...) while a rip is in progress, preferably using the Inhibit XDG desktop portal, or otherwise the logind D-Bus API. Not sure if there are other options when neither is available, e.g. on non-systemd distros, but if so that's something I'd like to keep out of scope.
I'm not very familiar with the project structure though, so I was hoping to discuss what the best place is to put this logic. It seems to me like the DBus connection and actions belongs on an application level, with a slot for either enabling or disabling inhibition that is connected to a signal on e.g. JobConvert or JobManager?
Beta Was this translation helpful? Give feedback.
All reactions