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 73c7544 commit 2db47e3Copy full SHA for 2db47e3
src/utils.rs
@@ -103,7 +103,7 @@ pub fn user_runtime_directory() -> Option<PathBuf> {
103
104
if let Some(xdg_runtime_directory) = xdg_runtime_directory() {
105
Some(xdg_runtime_directory.join("ncspot"))
106
- } else if cfg!(linux) && linux_runtime_directory.exists() {
+ } else if cfg!(target_os = "linux") && linux_runtime_directory.exists() {
107
Some(linux_runtime_directory.join("ncspot"))
108
} else if unix_runtime_directory.exists() {
109
Some(unix_runtime_directory.join(format!("ncspot-{}", unsafe { libc::getuid() })))
0 commit comments