feat: run local audio server at start

This commit is contained in:
Kingtous committed 2023-02-07 16:20:37 +08:00
1 parent 4f3c5b42ae
commit 3b34e2ea45
2 files changed
+9 -2

No files matched your search

+3
View File
@@ -95,6 +95,9 @@ pub fn start(args: &mut [String]) {
frame.event_handler(UI {});
frame.sciter_handler(UIHostHandler {});
page = "index.html";
// Start pulse audio local server.
#[cfg(target_os = "linux")]
std::thread::spawn(crate::ipc::start_pa);
} else if args[0] == "--install" {
frame.event_handler(UI {});
frame.sciter_handler(UIHostHandler {});