Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.4.0
-
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
- duplicates
-
QTBUG-48417 Icon::fromTheme ignores files in ~/.local/share/icons
- Closed
- relates to
-
QTBUG-48417 Icon::fromTheme ignores files in ~/.local/share/icons
- Closed
-
QTBUG-71039 icon search path does not include user theme's
- Closed
-
QTBUG-33123 QIcon::fromTheme() does not support all the xdg icon-theme directories nor XPM icons
- Closed