Skip to content

Adding a configuration option to inhibit suspend and idle behavior.

Franz Dietrich requested to merge enaut:detailed-inhibitor into master

The operating systems suspend and idle behavior can be inhibited by a setting to prevent a computer that is just playing music from going to screensaver or suspend and thereby stoping music playback.

Two boolean flags are added to the dconf:

  • inhibit-suspend
  • inhibit-idle

A graphical combobox is added to the settings dialog where 4 options are possible:

  • none
  • idle
  • suspend
  • both

Whenever something other than none is selected the powermanagement is adjusted during playback and resetted afterwards.

The already existing code for the fullscreen inhibit is adjusted to also use the inhibitor.

tabs in data/org.gnome.Lollypop.gschema.xml are replaced with spaces (was mixed tab and spaces)

Implements: https://github.com/gnumdk/lollypop/issues/1188 improves: #1200

Merge request reports