git.lucas.co / cce-system-interface
system settings
git clone https://git.lucas.co/cce-system-interface.git

commit980a13ff52a6af4075ec00699cff3b600a74ee34
parent05ce9c9e31
authorLucas Galante <[email protected]>
date2026-07-07 12:37
refactor: derive control socket path via cce_ui::ipc::socket_path

Use the shared IPC socket-path helper instead of a local WAYLAND_DISPLAY format.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

 src/pages/notifications.rs | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/pages/notifications.rs b/src/pages/notifications.rs
index 4d9b9d8..a9f37a0 100644
--- a/src/pages/notifications.rs
+++ b/src/pages/notifications.rs
@@ -109,10 +109,7 @@ pub fn update(state: &mut NotificationsState, msg: NotificationsMessage) {
 }
 
 fn get_socket_path() -> String {
-    match std::env::var("WAYLAND_DISPLAY") {
-        Ok(display) => format!("/tmp/cce-{}.sock", display),
-        Err(_) => "/tmp/cce.sock".to_string(),
-    }
+    cce_ui::ipc::socket_path("cce")
 }
 
 pub fn read_notifications_config() -> NotificationsConfig {