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

QIcon does not search XDG_DATA_HOME

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.4.0
    • QPA: X11/XCB
    • None
    • Ubuntu 14.04.

    Description

      The documentation for QIcon (http://doc.qt.io/qt-5/qicon.html ) says: "On X11, the search path will use the XDG_DATA_DIRS environment variable if available."

      There are a few problems here:

      1. XDG_DATA_HOME should also be searched, as per the XDG Base Directory Specification (http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html ), which says: "$XDG_DATA_DIRS defines the preference-ordered set of base directories to search for data files in addition to the $XDG_DATA_HOME base directory."

      2. If either variable is not defined, the default values should be used, again as per the XDG Base Directory spec.

      3. The XDG Base Directory spec is not X11-specific; for example, it will also apply to most systems running Wayland or Mir; in practice, pretty much anything that is not Windows or Mac.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-45394
          # Subject Branch Project Status CR V

          Activity

            People

              paeglis Gatis Paeglis
              rrt Reuben Thomas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes