feat: keep the screensaver off while music is playing

Holds org.freedesktop.ScreenSaver.Inhibit, the call Electron apps
such as VacuumTube use to stay awake in Steam's Game Mode, and the
XDG portal's idle inhibit, from play until pause, stop or quit.
zbus 6 cannot connect through Flatpak's D-Bus proxy, so this uses
zbus 5.
This commit is contained in:
Ansho Rei
2026-11-04 12:57:14 +01:00
parent 5a2386e817
commit 62169be746
8 changed files with 351 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "remus"
version = "0.4.0"
version = "0.5.0"
edition = "2024"
license = "MIT"
@@ -21,6 +21,7 @@ serde_json = "1.0.154"
slint = "1.18.1"
tokio = { version = "1.54.1", features = ["rt-multi-thread", "sync", "macros", "time"] }
toml = "1.1.8"
zbus = { version = "5.19.0", default-features = false, features = ["tokio"] }
[build-dependencies]
slint-build = "1.18.1"