mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Use /tmp/qupzilla/tmp as a temp path on Linux.
Instead of creating another folder in /tmp (qupzilla-tmp), use already created /tmp/qupzilla. See #811
This commit is contained in:
parent
39af453281
commit
2d27c40384
|
@ -1215,8 +1215,9 @@ QString MainApplication::tempPath() const
|
|||
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");
|
||||
QDir().mkpath(QDir::tempPath() + "/qupzilla/tmp");
|
||||
QFile::remove(PROFILEDIR + "tmp");
|
||||
QFile::link(QDir::tempPath() + "/qupzilla/tmp/", PROFILEDIR + "tmp");
|
||||
#else
|
||||
dir.mkdir(path);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user