depot/pkgs/by-name/ea/earbuds/fix-daemon.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

26 lines
912 B
Diff

From 6f52bee7f71e253b0504164fc268750116945108 Mon Sep 17 00:00:00 2001
From: griffi-gh <prasol258@gmail.com>
Date: Mon, 4 Nov 2024 00:43:49 +0100
Subject: [PATCH] fix daemon autostart
---
src/daemon_utils.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/daemon_utils.rs b/src/daemon_utils.rs
index cd8f49b..f56e100 100644
--- a/src/daemon_utils.rs
+++ b/src/daemon_utils.rs
@@ -13,7 +13,11 @@ use nix::{
pub fn start() -> bool {
let curr_exe = env::current_exe().expect("Couldn't get current executable!");
let mut cmd = Command::new("nohup");
- let cmd = cmd.arg(curr_exe).arg("-d").arg("--no-fork").arg("-q");
+ let cmd = cmd
+ .arg(curr_exe)
+ .arg("--daemon").arg("true")
+ .arg("--no-fork").arg("true")
+ .arg("--quiet").arg("true");
cmd.stdout(Stdio::null());
cmd.stderr(Stdio::null());
let status = cmd.spawn();