🚧 fix services
This commit is contained in:
parent
ef374d817c
commit
e750a943e8
|
@ -667,7 +667,7 @@ fn on_servbtn_clicked(button: >k::CheckButton) {
|
||||||
let cmd: String;
|
let cmd: String;
|
||||||
unsafe {
|
unsafe {
|
||||||
let local_units = &g_local_units.lock().unwrap().enabled_units;
|
let local_units = &g_local_units.lock().unwrap().enabled_units;
|
||||||
cmd = if local_units.contains(&String::from(action_data)) {
|
cmd = if !local_units.contains(&String::from(action_data)) {
|
||||||
format!(
|
format!(
|
||||||
"/sbin/pkexec {} bash -c \"systemctl {} enable --now --force {}\"",
|
"/sbin/pkexec {} bash -c \"systemctl {} enable --now --force {}\"",
|
||||||
pkexec_only, user_only, action_data
|
pkexec_only, user_only, action_data
|
||||||
|
|
Loading…
Reference in New Issue