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

[B2Qt] incorrect directory used for XDG_RUNTIME_DIR

    XMLWordPrintable

Details

    Description

      In /etc/appcontroller.conf is set to env=XDG_RUNTIME_DIR=/tmp and when ever a Qt application is started it changes the ownership of /tmp directory from 777 to 700.
      https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/io/qstandardpaths_unix.cpp#n163 is changing the permission.
      Qt probably shouldn't change permission of standard directories, just print a warning.

      From specifications:

      $XDG_RUNTIME_DIR defines the base directory relative to which user-specific non-essential runtime files and other file objects (such as sockets, named pipes, ...) should be stored. The directory MUST be owned by the user, and he MUST be the only one having read and write access to it. Its Unix access mode MUST be 0700.

      Attachments

        Issue Links

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

          Activity

            People

              sapiippo Samuli Piippo
              karimpinter Karim Pinter (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes