OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33f7ac3
)
do not warn if XDG_RUNTIME_DIR is not set
author
Ivailo Monev
<xakepa10@gmail.com>
Sat, 8 Jul 2023 01:22:24 +0000
(
04:22
+0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Sat, 8 Jul 2023 01:25:00 +0000
(
04:25
+0300)
happens often enough, if current user is changed via `sudo` for example
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/io/qstandardpaths_unix.cpp
patch
|
blob
|
history
diff --git
a/src/core/io/qstandardpaths_unix.cpp
b/src/core/io/qstandardpaths_unix.cpp
index
3d71618
..
a6158ab
100644
(file)
--- a/
src/core/io/qstandardpaths_unix.cpp
+++ b/
src/core/io/qstandardpaths_unix.cpp
@@
-253,10
+253,9
@@
QStringList QStandardPaths::standardLocations(StandardLocation type)
}
case StandardLocation::RuntimeLocation: {
const QString location = qGetEnv("XDG_RUNTIME_DIR");
- if (
Q_UNLIKELY(!location.isEmpty()
)) {
+ if (
!location.isEmpty(
)) {
result.append(location);
} else {
- qWarning("QStandardPaths: runtime directory is not set, using fallback");
result.append(QDir::tempPath());
}
break;