Migrate socket2 path resolution to bread-utils::hypr

hyprland_socket2_path() duplicated the same HYPRLAND_INSTANCE_SIGNATURE +
XDG_RUNTIME_DIR resolution breadbox and breadclip had for socket1 — now
shared via bread_utils::hypr::socket_path (path dependency for now, see
the TODO in Cargo.toml).

Builds and all 16 existing tests pass.
This commit is contained in:
Breadway 2026-07-17 09:26:00 +08:00
parent ddbc9e63d3
commit 13863836bc
3 changed files with 13 additions and 7 deletions

10
Cargo.lock generated
View file

@ -20,11 +20,21 @@ version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
[[package]]
name = "bread-utils"
version = "0.2.3"
dependencies = [
"dirs",
"serde",
"serde_json",
]
[[package]]
name = "breadmon"
version = "0.1.1"
dependencies = [
"anyhow",
"bread-utils",
"crossterm",
"dirs",
"futures",