Add user and root config sync action

This commit is contained in:
chenbaiyu committed 2022-01-13 16:33:51 +08:00
1 parent 81e43c2970
commit f45a2c7a94
7 files changed
+319 -4

No files matched your search

+8
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);
}
}