Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.9.5
-
None
-
Ubuntu 18.04.1 LTS on x86_64
Description
When starting a QApplication in a non-XDG environment, the following message gets unconditionally printed:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-chn'
It can be reproduced by starting an empty QApplication:
XDG_RUNTIME_DIR= python3 -c 'import PyQt5.QtWidgets; PyQt5.QtWidgets.QApplication([])'
I have traced the message to flatpak detection added in https://github.com/qt/qtbase/commit/84731fbb2bafe4d92bec6cc60db5115279bc6e38
Attachments
Issue Links
- relates to
-
QTBUG-102458 better xdg-desktop-portal support
-
- Reported
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-72175 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
247067,1 | Suppress the warning that XDG_RUNTIME_DIR isn't set on QGuiApplication() | 5.12 | qt/qtbase | Status: ABANDONED | -1 | 0 |