mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-28 21:27:53 +00:00
QDir::tempPath already has fallback to /tmp
This commit is contained in:
parent
ede7ad1a4c
commit
d9711f8ebd
@ -701,10 +701,6 @@ QString AppRuntimeDirectory() {
|
|||||||
runtimeDir = QDir::tempPath();
|
runtimeDir = QDir::tempPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (runtimeDir.isEmpty()) {
|
|
||||||
runtimeDir = qsl("/tmp/");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!runtimeDir.endsWith('/')) {
|
if (!runtimeDir.endsWith('/')) {
|
||||||
runtimeDir += '/';
|
runtimeDir += '/';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user