This commit is contained in:
Observer KRypt0n_ 2023-06-28 11:53:43 +02:00
commit 20b77a3444
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -23,7 +23,7 @@ pub fn disable_telemetry(sender: ComponentSender<App>) {
let output = Command::new("pkexec") let output = Command::new("pkexec")
.arg("bash") .arg("bash")
.arg("-c") .arg("-c")
.arg(telemetry) .arg(format!("echo '' >> /etc/hosts ; {telemetry} ; echo '' >> /etc/hosts"))
.spawn(); .spawn();
match output.and_then(|child| child.wait_with_output()) { match output.and_then(|child| child.wait_with_output()) {