mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Unix: Use /tmp/qupzilla-$USER as temp path
It makes it possible to run QupZilla on more accounts at the same time
This commit is contained in:
parent
7a7be29e3a
commit
8b3da86976
@ -143,8 +143,10 @@ void DataPaths::init()
|
|||||||
|
|
||||||
// Temp
|
// Temp
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
dir.mkpath(QDir::tempPath() + QLatin1String("/qupzilla/tmp"));
|
const QByteArray &user = qgetenv("USER");
|
||||||
m_paths[Temp].append(QDir::tempPath() + QLatin1String("/qupzilla/tmp"));
|
const QString &tempPath = QString(QSL("%1/qupzilla-%2/tmp")).arg(QDir::tempPath(), user.constData());
|
||||||
|
dir.mkpath(tempPath);
|
||||||
|
m_paths[Temp].append(tempPath);
|
||||||
#else
|
#else
|
||||||
m_paths[Temp].append(m_paths[Config].first() + QLatin1String("/tmp"));
|
m_paths[Temp].append(m_paths[Config].first() + QLatin1String("/tmp"));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user