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

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.6.0 RC
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      Archlinux
    • Commits:
      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

            Assignee:
            dfaure David Faure (Private)
            Reporter:
            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