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

QDir::homePath() is not portable

XMLWordPrintable

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

      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

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

            Unassigned Unassigned
            jirauser22749 user-e377b (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes