refactor: start settings daemon first
This commit is contained in:
parent
8fd40b588a
commit
334aebc398
1 changed files with 6 additions and 6 deletions
12
src/main.rs
12
src/main.rs
|
|
@ -17,7 +17,7 @@ use async_signals::Signals;
|
||||||
use color_eyre::{eyre::WrapErr, Result};
|
use color_eyre::{eyre::WrapErr, Result};
|
||||||
use comp::create_privileged_socket;
|
use comp::create_privileged_socket;
|
||||||
use cosmic_notifications_util::{DAEMON_NOTIFICATIONS_FD, PANEL_NOTIFICATIONS_FD};
|
use cosmic_notifications_util::{DAEMON_NOTIFICATIONS_FD, PANEL_NOTIFICATIONS_FD};
|
||||||
use futures_util::{SinkExt, StreamExt};
|
use futures_util::StreamExt;
|
||||||
use launch_pad::{process::Process, ProcessManager};
|
use launch_pad::{process::Process, ProcessManager};
|
||||||
use service::SessionRequest;
|
use service::SessionRequest;
|
||||||
use tokio::{
|
use tokio::{
|
||||||
|
|
@ -119,6 +119,11 @@ async fn start(
|
||||||
systemd::stop_systemd_target();
|
systemd::stop_systemd_target();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
process_manager
|
||||||
|
.start(Process::new().with_executable("cosmic-settings-daemon"))
|
||||||
|
.await
|
||||||
|
.expect("failed to start settings daemon");
|
||||||
|
|
||||||
let env_vars = env_rx
|
let env_vars = env_rx
|
||||||
.await
|
.await
|
||||||
.expect("failed to receive environmental variables")
|
.expect("failed to receive environmental variables")
|
||||||
|
|
@ -262,11 +267,6 @@ async fn start(
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
process_manager
|
|
||||||
.start(Process::new().with_executable("cosmic-settings-daemon"))
|
|
||||||
.await
|
|
||||||
.expect("failed to start settings daemon");
|
|
||||||
|
|
||||||
let mut signals = Signals::new(vec![libc::SIGTERM, libc::SIGINT]).unwrap();
|
let mut signals = Signals::new(vec![libc::SIGTERM, libc::SIGINT]).unwrap();
|
||||||
let mut status = Status::Exited;
|
let mut status = Status::Exited;
|
||||||
loop {
|
loop {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue