On the first failed unlock attempt, save the current system volume and mute state then set volume to maximum unmuted; restore on g_module_unload. A lock file under XDG_RUNTIME_DIR prevents double-acquisition when multiple gtklock windows are active. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
590 B
TOML
24 lines
590 B
TOML
[package]
|
|
name = "ahfail-ui"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "ahfail_ui"
|
|
crate-type = ["rlib"]
|
|
|
|
[dependencies]
|
|
gtk = { version = "0.15", package = "gtk", features = ["v3_24"] }
|
|
gdk = { version = "0.15", package = "gdk", features = ["v3_24"] }
|
|
gstreamer = { version = "0.18", package = "gstreamer", features = ["v1_18"] }
|
|
gstreamer-player = { version = "0.18", package = "gstreamer-player" }
|
|
glib = { version = "0.15", package = "glib" }
|
|
gio = { version = "0.15", package = "gio" }
|
|
gdk-pixbuf = "0.15"
|
|
rand = "0.8"
|
|
ureq = "2"
|
|
libc = "0.2"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|