mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
stdpaths: Remove Apple defaults, use \*nix ones instead
This commit is contained in:
@@ -22,24 +22,16 @@ static const char *const xdg_defaults[] = {
|
|||||||
// Windows, Apple stuff are just shims right now
|
// Windows, Apple stuff are just shims right now
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
// Windows
|
// Windows
|
||||||
#elif APPLE
|
|
||||||
// Apple (this includes iOS, which we might need to handle differently)
|
|
||||||
[kXDGConfigHome] = "~/Library/Preferences",
|
|
||||||
[kXDGDataHome] = "~/Library/Application Support",
|
|
||||||
[kXDGCacheHome] = "~/Library/Caches",
|
|
||||||
[kXDGRuntimeDir] = "~/Library/Application Support",
|
|
||||||
[kXDGConfigDirs] = "/Library/Application Support",
|
|
||||||
[kXDGDataDirs] = "/Library/Application Support",
|
|
||||||
#else
|
#else
|
||||||
// Linux, BSD, CYGWIN
|
// Linux, BSD, CYGWIN, Apple
|
||||||
[kXDGConfigHome] = "~/.config",
|
[kXDGConfigHome] = "~/.config",
|
||||||
[kXDGDataHome] = "~/.local/share",
|
[kXDGDataHome] = "~/.local/share",
|
||||||
[kXDGCacheHome] = "~/.cache",
|
[kXDGCacheHome] = "~/.cache",
|
||||||
[kXDGRuntimeDir] = "",
|
[kXDGRuntimeDir] = "",
|
||||||
[kXDGConfigDirs] = "/etc/xdg/",
|
[kXDGConfigDirs] = "/etc/xdg/",
|
||||||
[kXDGDataDirs] = "/usr/local/share/:/usr/share/",
|
[kXDGDataDirs] = "/usr/local/share/:/usr/share/",
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
/// Return XDG variable value
|
/// Return XDG variable value
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user