KService allows to query information about installed applications and their associated file types.

The two relevant classes are:

  • KService: This models an installed application and allows to query various properties about it
  • KApplicationTrader: This is used to list available applications as well as applications associated with a given file type


KSycoca caches the information about available applications and file associations for faster access.


If you are using CMake, you need to have


(or similar) in your CMakeLists.txt file, and you need to link to KF6::Service.

This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jun 4 2023 03:55:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.