Skip to content

Commit

Permalink
fix: cfg fix for Linux
Browse files Browse the repository at this point in the history
changed cfg!(linux) to cfg!(target_os = "linux")
  • Loading branch information
aragonnetje6 authored May 7, 2024
1 parent 73c7544 commit 2db47e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub fn user_runtime_directory() -> Option<PathBuf> {

if let Some(xdg_runtime_directory) = xdg_runtime_directory() {
Some(xdg_runtime_directory.join("ncspot"))
} else if cfg!(linux) && linux_runtime_directory.exists() {
} else if cfg!(target_os = "linux") && linux_runtime_directory.exists() {
Some(linux_runtime_directory.join("ncspot"))
} else if unix_runtime_directory.exists() {
Some(unix_runtime_directory.join(format!("ncspot-{}", unsafe { libc::getuid() })))
Expand Down

0 comments on commit 2db47e3

Please sign in to comment.