mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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/";
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user