We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaad2c7 commit fd880c6Copy full SHA for fd880c6
crates/cli/src/main.rs
@@ -61,7 +61,7 @@ fn parse_path_with_position(
61
62
fn main() -> Result<()> {
63
// Exit flatpak sandbox
64
- #[cfg(feature = "flatpak")]
+ #[cfg(all(feature = "flatpak", target_os = "linux"))]
65
flatpak::restart_to_host();
66
67
// Intercept version designators
@@ -279,7 +279,7 @@ mod linux {
279
}
280
281
282
-#[cfg(feature = "flatpak")]
+#[cfg(all(feature = "flatpak", target_os = "linux"))]
283
mod flatpak {
284
use std::ffi::OsString;
285
use std::path::PathBuf;
@@ -329,7 +329,7 @@ mod flatpak {
329
330
331
fn get_xdg_env_args() -> Vec<OsString> {
332
- let keep_keys = vec![
+ let keep_keys = [
333
"XDG_DATA_HOME",
334
"XDG_CONFIG_HOME",
335
"XDG_CACHE_HOME",
0 commit comments