diff options
Diffstat (limited to 'src/filemanager.cpp')
| -rw-r--r-- | src/filemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filemanager.cpp b/src/filemanager.cpp index a90af572..165a5b15 100644 --- a/src/filemanager.cpp +++ b/src/filemanager.cpp @@ -1220,7 +1220,7 @@ std::string pj_context_get_user_writable_directory(PJ_CONTEXT *ctx, path = xdg_data_home; } else { const char *home = getenv("HOME"); - if (home) { + if (home && access(home, W_OK) == 0) { #if defined(__MACH__) && defined(__APPLE__) path = std::string(home) + "/Library/Application Support"; #else |
