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

Misleading error with QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation) when $XDG_RUNTIME_DIR does not exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.0 RC
    • 5.5.0
    • Core: I/O
    • None
    • Archlinux
    • 5f03b48cb38936e2e86143bec71d030876b84c8b

    Description

      When setting XDG_RUNTIME_DIR=does_not_exist and then trying to get the runtime location, the error printed is:

      QStandardPaths: wrong ownership on runtime directory does_not_exist, -2 instead of 1001
      

      The error is quite confusing - I think the case with the directory not existing should be handled separately before trying to set the ownership.

      Attachments

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

        Activity

          People

            dfaure David Faure (Private)
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes