We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b1f4bf commit 02e8e71Copy full SHA for 02e8e71
‎src/pages.rs
@@ -850,7 +850,9 @@ fn toggle_service(
850
let units_handle = if action_type == "user_service" { &G_GLOBAL_UNITS } else { &G_LOCAL_UNITS }
851
.lock()
852
.unwrap();
853
- let cmd = if !units_handle.enabled_units.contains(&String::from(action_data)) {
+
854
+ let action_enabled = action_data.split(' ').all(|x| units_handle.enabled_units.contains(&x.to_owned()));
855
+ let cmd = if !action_enabled {
856
if action_type == "user_service" {
857
format!("systemctl --user enable --now --force {action_data}")
858
} else {
0 commit comments