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 2f2617d commit a663db2Copy full SHA for a663db2
src/util.rs
@@ -79,6 +79,7 @@ pub fn get_nix_version() -> Result<String> {
79
///
80
/// 1. `doas`
81
/// 1. `sudo`
82
+/// 1. `run0`
83
/// 1. `pkexec`
84
85
/// The logic for choosing this order is that a person with doas installed is more likely
@@ -95,7 +96,7 @@ pub fn get_elevation_program() -> Result<OsString> {
95
96
return Ok(path?.into_os_string());
97
}
98
- const STRATEGIES: [&str; 3] = ["doas", "sudo", "pkexec"];
99
+ const STRATEGIES: [&str; 4] = ["doas", "sudo", "run0", "pkexec"];
100
101
for strategy in STRATEGIES {
102
if let Ok(path) = which(strategy) {
0 commit comments