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

QDir::homePath() is not portable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.0
    • Core: I/O
    • None
    • Windows

    Description

      Various standalone portable softwares could have been forced to become portable, if only they hadn't stored their data in a path that involves QDir::homePath().

      The problem is that QDir::homePath() checks environment variables such as %HOMEPATH% and %HOME% only after calling GetUserProfileDirectoryW.

      Nobody alive seems to know how does GetUserProfileDirectoryW work. But everyone agrees that function beats any attempt to bypass it temporarily. This is unlike environment variables which could be instructed by an external launcher to be modified only inside the session that runs the relevant programs.

      Please see http://qt-project.org/forums/viewthread/15481

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            lwc Lior W.
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes