1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

X11: Symlink qupzilla/tmp into /tmp

This commit is contained in:
nowrep 2013-02-22 10:06:05 +01:00
parent 76849082e4
commit bc2e163b90

View File

@ -1174,7 +1174,13 @@ QString MainApplication::tempPath() const
QString path = PROFILEDIR + "tmp/";
QDir dir(path);
if (!dir.exists()) {
#ifdef QZ_WS_X11
// Symlink it to standard temporary path /tmp
QDir().mkpath(QDir::tempPath() + "/qupzilla-tmp/");
QFile::link(QDir::tempPath() + "/qupzilla-tmp/", PROFILEDIR + "tmp");
#else
dir.mkdir(path);
#endif
}
return path;