mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56: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] = d->m_paths[Config];
|
||||||
d->m_paths[Temp].first().append(QLatin1String("/tmp"));
|
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
|
// static
|
||||||
@ -134,10 +139,6 @@ void DataPaths::init()
|
|||||||
m_paths[Config].append(confPath.absolutePath());
|
m_paths[Config].append(confPath.absolutePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure the Config path exists
|
|
||||||
QDir dir;
|
|
||||||
dir.mkpath(m_paths[Config].first());
|
|
||||||
|
|
||||||
// Profiles
|
// Profiles
|
||||||
m_paths[Profiles].append(m_paths[Config].first() + QLatin1String("/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"));
|
m_paths[Temp].append(m_paths[Config].first() + QLatin1String("/tmp"));
|
||||||
#endif
|
#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
|
// We also allow to load data from Config path
|
||||||
m_paths[Translations].append(m_paths[Config].first() + QLatin1String("/locale"));
|
m_paths[Translations].append(m_paths[Config].first() + QLatin1String("/locale"));
|
||||||
m_paths[Themes].append(m_paths[Config].first() + QLatin1String("/themes"));
|
m_paths[Themes].append(m_paths[Config].first() + QLatin1String("/themes"));
|
||||||
|
Loading…
Reference in New Issue
Block a user