diff --git a/src/App/ApplicationDirectories.cpp b/src/App/ApplicationDirectories.cpp index 27f4fa6188..10102ebb9b 100644 --- a/src/App/ApplicationDirectories.cpp +++ b/src/App/ApplicationDirectories.cpp @@ -137,7 +137,10 @@ fs::path ApplicationDirectories::findPath(const fs::path& stdHome, const fs::pat // If a custom user home path is given, then don't modify it if (customHome.empty()) { for (const auto& it : subdirs) { - appData = appData / it; + if (!it.empty()) { + // Refuse to add an empty directory path component + appData = appData / it; + } } }