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:
parent
76849082e4
commit
bc2e163b90
@ -1174,7 +1174,13 @@ QString MainApplication::tempPath() const
|
|||||||
QString path = PROFILEDIR + "tmp/";
|
QString path = PROFILEDIR + "tmp/";
|
||||||
QDir dir(path);
|
QDir dir(path);
|
||||||
if (!dir.exists()) {
|
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);
|
dir.mkdir(path);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
|
Loading…
Reference in New Issue
Block a user