Add user and root config sync action

This commit is contained in:
chenbaiyu
2022-01-13 15:26:57 +08:00
parent 81e43c2970
commit f45a2c7a94
7 changed files with 319 additions and 4 deletions

View File

@@ -333,3 +333,11 @@ pub fn block_input(_v: bool) {
pub fn is_installed() -> bool {
true
}
pub fn start_daemon(){
log::info!("{}",crate::username());
if let Err(err) = crate::ipc::start("_daemon") {
log::error!("Failed to start ipc_daemon: {}", err);
std::process::exit(-1);
}
}