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

Silence XDG_RUNTIME_DIR message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.9.5
    • Core: Other
    • None
    • Ubuntu 18.04.1 LTS on x86_64
    • 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

          For Gerrit Dashboard: QTBUG-72175
          # Subject Branch Project Status CR V

          Activity

            People

              liaqi Liang Qi
              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