diff --git a/src/lib/app/datapaths.cpp b/src/lib/app/datapaths.cpp index 82d4a330f..fa6fe66cc 100644 --- a/src/lib/app/datapaths.cpp +++ b/src/lib/app/datapaths.cpp @@ -142,6 +142,10 @@ void DataPaths::init() // Profiles m_paths[Profiles].append(m_paths[Config].first() + QLatin1String("/profiles")); + // Make sure the Config and Temp pathes exist + QDir dir; + dir.mkpath(m_paths[Config].first()); + // Temp #ifdef Q_OS_UNIX const QByteArray &user = qgetenv("USER"); @@ -150,12 +154,8 @@ void DataPaths::init() m_paths[Temp].append(tempPath); #else m_paths[Temp].append(m_paths[Config].first() + QLatin1String("/tmp")); -#endif - - // Make sure the Config and Temp pathes exist - QDir dir; - dir.mkpath(m_paths[Config].first()); dir.mkpath(m_paths[Temp].first()); +#endif // We also allow to load data from Config path m_paths[Translations].append(m_paths[Config].first() + QLatin1String("/locale"));