🚧 fix services

This commit is contained in:
Vladislav Nepogodin 2022-06-02 21:35:01 +04:00
parent ef374d817c
commit e750a943e8
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
1 changed files with 1 additions and 1 deletions

View File

@ -667,7 +667,7 @@ fn on_servbtn_clicked(button: &gtk::CheckButton) {
let cmd: String;
unsafe {
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!(
"/sbin/pkexec {} bash -c \"systemctl {} enable --now --force {}\"",
pkexec_only, user_only, action_data