earbuds: 0.1.9-unstable-2024-06-28 -> 0.2.0 (#494354)
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
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();
|
||||
@@ -9,23 +9,18 @@
|
||||
dbus,
|
||||
libpulseaudio,
|
||||
}:
|
||||
rustPlatform.buildRustPackage {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "earbuds";
|
||||
version = "0.1.9-unstable-2024-06-28";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JojiiOfficial";
|
||||
repo = "LiveBudsCli";
|
||||
rev = "df46706e44fa9e7de355b11eab4cc850efe968a3";
|
||||
hash = "sha256-IEor7aZnwCA6Rg2gXIYSQ65hV/jJOKehujOSZnVzVis=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-x0PXOWj77VgJDPY4j+1PRg0M7+vIYSk+6yfj8s0UKx8=";
|
||||
};
|
||||
|
||||
# fix daemon autostart not working
|
||||
patches = [
|
||||
./fix-daemon.patch
|
||||
];
|
||||
|
||||
cargoHash = "sha256-Y1pMmWxfXGcEFPj05/BpXQvd199O5l6hJmePNxMQc/Y=";
|
||||
cargoHash = "sha256-N0/VtqulNRsuoiKcw1LMWTpYNLfX9IiU+hSDlm3ZP1Y=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
@@ -57,4 +52,4 @@ rustPlatform.buildRustPackage {
|
||||
mainProgram = "earbuds";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user