chore: update dependencies

Removes the `cosmic-notifications-utils` dependency, and instead defines the notification FDs here (since they're unlikely to change).
This commit is contained in:
Vukašin Vojinović 2026-04-25 18:18:48 +02:00 • committed by Jeremy Soller
parent a77aaa1904
commit 673e4c949b
4 changed files with 464 additions and 807 deletions

View file

@ -1,5 +1,4 @@
use color_eyre::{Result, eyre::Context};
use cosmic_notifications_util::{DAEMON_NOTIFICATIONS_FD, PANEL_NOTIFICATIONS_FD};
use launch_pad::{ProcessKey, process::Process};
use rustix::fd::AsRawFd;
use std::{
@ -9,6 +8,9 @@ use std::{
use tokio::sync::Mutex;
use tracing::Instrument;
pub const PANEL_NOTIFICATIONS_FD: &str = "PANEL_NOTIFICATIONS_FD";
pub const DAEMON_NOTIFICATIONS_FD: &str = "DAEMON_NOTIFICATIONS_FD";
pub fn create_socket() -> Result<(OwnedFd, OwnedFd)> {
// Create a new pair of unnamed Unix sockets
let (sock_1, sock_2) = UnixStream::pair().wrap_err("failed to create socket pair")?;