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

Qt source code using getenv("HOME") instead of QDir::homePath()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.0.0
    • 4.5.2
    • GUI: Printing
    • None

    Description

      Browsing through the Qt source code while trying to find the solution to a printing problem, I notice that in a couple of places in the Qt source code rather than using the central QDir::homePath() function, a direct call to getenv("HOME") is used.

      I can give you three locations:

      Line 862 in qprintdialog_unix.cpp in function "void QUnixPrintWidgetPrivate::applyPrinterProperties(QPrinter *p)"

      Line 111 in qprintengine_qws.cpp in function "bool QtopiaPrintEngine::end()"

      Line 113 in qprintengine_qws.cpp in function "bool QtopiaPrintEngine::end()"

      (The last of these three, I think, might be better using QDir::tempPath(), not QDir::homePath() however based on what the source code seems to intend).

      Attachments

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

        Activity

          People

            johnlayt John Layt
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (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