cf12defd28
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
23 lines
658 B
Markdown
23 lines
658 B
Markdown
# KService
|
|
|
|
## Introduction
|
|
|
|
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
|
|
|
|
KSycoca caches the information about available applications and file associations for faster access.
|
|
|
|
## Usage
|
|
|
|
If you are using CMake, you need to have
|
|
|
|
find_package(KF6Service)
|
|
|
|
(or similar) in your CMakeLists.txt file, and you need to link to KF6::Service.
|
|
|