Skip to content

Commit 2db47e3

Browse files
authored
fix: cfg fix for Linux
changed cfg!(linux) to cfg!(target_os = "linux")
1 parent 73c7544 commit 2db47e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub fn user_runtime_directory() -> Option<PathBuf> {
103103

104104
if let Some(xdg_runtime_directory) = xdg_runtime_directory() {
105105
Some(xdg_runtime_directory.join("ncspot"))
106-
} else if cfg!(linux) && linux_runtime_directory.exists() {
106+
} else if cfg!(target_os = "linux") && linux_runtime_directory.exists() {
107107
Some(linux_runtime_directory.join("ncspot"))
108108
} else if unix_runtime_directory.exists() {
109109
Some(unix_runtime_directory.join(format!("ncspot-{}", unsafe { libc::getuid() })))

0 commit comments

Comments
 (0)