trivial changes
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
4d87364bd8
commit
f3bb3067cd
@ -191,7 +191,7 @@ pub fn run_cmds(cmds: &str) -> ResultType<String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "flatpak"))]
|
#[cfg(not(feature = "flatpak"))]
|
||||||
pub(super) fn run_loginctl(args: Option<Vec<&str>>) -> std::io::Result<std::process::Output> {
|
fn run_loginctl(args: Option<Vec<&str>>) -> std::io::Result<std::process::Output> {
|
||||||
let mut cmd = std::process::Command::new("loginctl");
|
let mut cmd = std::process::Command::new("loginctl");
|
||||||
if let Some(a) = args {
|
if let Some(a) = args {
|
||||||
return cmd.args(a).output();
|
return cmd.args(a).output();
|
||||||
@ -200,7 +200,7 @@ pub(super) fn run_loginctl(args: Option<Vec<&str>>) -> std::io::Result<std::proc
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "flatpak")]
|
#[cfg(feature = "flatpak")]
|
||||||
pub(super) fn run_loginctl(args: Option<Vec<&str>>) -> std::io::Result<std::process::Output> {
|
fn run_loginctl(args: Option<Vec<&str>>) -> std::io::Result<std::process::Output> {
|
||||||
let mut l_args = String::from("loginctl");
|
let mut l_args = String::from("loginctl");
|
||||||
if let Some(a) = args {
|
if let Some(a) = args {
|
||||||
l_args = format!("{} {}", l_args, a.join(" "));
|
l_args = format!("{} {}", l_args, a.join(" "));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user