Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72175

Silence XDG_RUNTIME_DIR message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.9.5
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None
    • Environment:
      Ubuntu 18.04.1 LTS on x86_64
    • Platform/s:
      Linux/X11

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              liaqi Liang Qi
              Reporter:
              saturn_mimas C H
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes