flatpak command line is_root
This commit is contained in:
parent
20ce626654
commit
eb0174ea53
2 changed files with 5 additions and 1 deletions
|
|
@ -701,7 +701,7 @@ pub fn get_env_var(k: &str) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
fn is_flatpak() -> bool {
|
||||
pub fn is_flatpak() -> bool {
|
||||
std::path::PathBuf::from("/.flatpak-info").exists()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue