🚧 services: fix psd issue
This commit is contained in:
parent
7820fecfa3
commit
93579b53b2
11
src/pages.rs
11
src/pages.rs
|
@ -396,12 +396,11 @@ fn load_global_enabled_units() {
|
||||||
G_GLOBAL_UNITS.lock().unwrap().loaded_units.clear();
|
G_GLOBAL_UNITS.lock().unwrap().loaded_units.clear();
|
||||||
G_GLOBAL_UNITS.lock().unwrap().enabled_units.clear();
|
G_GLOBAL_UNITS.lock().unwrap().enabled_units.clear();
|
||||||
|
|
||||||
let mut exec_out =
|
let mut exec_out = Exec::shell("systemctl --user list-unit-files -q --no-pager | tr -s \" \"")
|
||||||
Exec::shell("systemctl --global list-unit-files -q --no-pager | tr -s \" \"")
|
.stdout(Redirection::Pipe)
|
||||||
.stdout(Redirection::Pipe)
|
.capture()
|
||||||
.capture()
|
.unwrap()
|
||||||
.unwrap()
|
.stdout_str();
|
||||||
.stdout_str();
|
|
||||||
exec_out.pop();
|
exec_out.pop();
|
||||||
|
|
||||||
let service_list = exec_out.split('\n');
|
let service_list = exec_out.split('\n');
|
||||||
|
|
Loading…
Reference in New Issue