mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
parent
2efc6914e5
commit
04721c6478
@ -51,6 +51,11 @@ void DataPaths::setPortableVersion()
|
||||
|
||||
d->m_paths[Temp] = d->m_paths[Config];
|
||||
d->m_paths[Temp].first().append(QLatin1String("/tmp"));
|
||||
|
||||
// Make sure the Config and Temp pathes exist
|
||||
QDir dir;
|
||||
dir.mkpath(m_paths[Config].first());
|
||||
dir.mkpath(m_paths[Temp].first());
|
||||
}
|
||||
|
||||
// static
|
||||
@ -134,10 +139,6 @@ void DataPaths::init()
|
||||
m_paths[Config].append(confPath.absolutePath());
|
||||
}
|
||||
|
||||
// Make sure the Config path exists
|
||||
QDir dir;
|
||||
dir.mkpath(m_paths[Config].first());
|
||||
|
||||
// Profiles
|
||||
m_paths[Profiles].append(m_paths[Config].first() + QLatin1String("/profiles"));
|
||||
|
||||
@ -151,6 +152,11 @@ void DataPaths::init()
|
||||
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());
|
||||
|
||||
// We also allow to load data from Config path
|
||||
m_paths[Translations].append(m_paths[Config].first() + QLatin1String("/locale"));
|
||||
m_paths[Themes].append(m_paths[Config].first() + QLatin1String("/themes"));
|
||||
|
Loading…
Reference in New Issue
Block a user