Skip to content
Qt implementation of xdg specs
C++ CMake Other
Branch: master
Clone or download
Latest commit 2cb30e4 Jul 30, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Reworded github issue template Mar 22, 2019
cmake Use lxqt-build-tools Feb 18, 2019
examples/use-qtxdg Set cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) Nov 22, 2018
src Fixed icon cache with absolute paths Aug 3, 2019
test test: Use qAsConst() Jun 1, 2019
util Avoid Qt special keywords collision Jun 14, 2017
.gitattributes Don't export github templates Sep 24, 2017
.gitignore Updates .gitignore Nov 5, 2014
CHANGELOG Point release libqtxdg 3.3.1 Feb 23, 2019
Digia-Qt-LGPL-Exception-1.1 Added Digia-Qt-LGPL-Exception-1.1 Mar 2, 2016 Revert translation promo Jul 4, 2018



libqtxdg is a Qt 5 implementation of XDG specifications.

It is maintained by the LXQt project and nearly all LXQt components are depending on it. Yet it can be used independently from this desktop environment, too.

The library is able to use GTK+ icon theme caches for faster icon lookup. The cache file can be generated with utility gtk-update-icon-cache on a theme directory. If the cache is not present, corrupted, or outdated, the normal slow lookup is still run.



At runtime qtbase is needed. gtk-update-icon-cache represents an optional runtime dependency for the reasons stated above.
Additional build dependencies are CMake, qtsvg, qttools and optionally Git to pull latest VCS checkouts.

The code configuration is handled by CMake so all corresponding generic instructions apply. Specific CMake variables are

  • BUILD_TESTS to build tests. Disabled by default (OFF).
  • BUILD_DEV_UTILS which builds and installs development utils. Disabled by default as well.

To build and install run make and make installrespectively.

Binary packages

The library is provided by all major Linux distributions like Arch Linux, Debian, Fedora and openSUSE.
Just use the distributions' package managers to search for string libqtxdg.

You can’t perform that action at this time.