This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Start regular application from systemsettings5

Tags: None
(comma "," separated)
User avatar
arjenbalfoort
Registered Member
Posts
9
Karma
0
OS
In KDE4 I could start an application from systemsettings by creating a .desktop file in /usr/share/kde4/services:
Code: Select all
[Desktop Entry]
Type=Service
Icon=myapplication
Exec=myapplication

X-KDE-ServiceTypes=SystemSettingsExternalApp
X-KDE-System-Settings-Parent-Category=system-administration
X-KDE-System-Settings-Parent-Category-V2=system-administration
X-KDE-ParentApp=myapplication
Categories=Qt;KDE;X-KDE-settings-system-administration;

Name=My Application


I guess that I need to create a .desktop file in /usr/share/kservices5 but I haven't found out how to configure the file.

Does anybody know how to do this?
wolfi323
Registered Member
Posts
1129
Karma
11
OS
It should be (exactly) the same, just that it has to be in /usr/share/kservices5.

One thing though:
Code: Select all
X-KDE-System-Settings-Parent-Category=system-administration

AFAIK the "system-administration" category has been removed some time ago.
Choose something else or your entry won't show up.
(although all those categories are by itself defined by files in /usr/share/kservices5/, the list is not static and you could even add your own)

Here's some documentation:
https://techbase.kde.org/Development/Tu ... sktop_file
The command to get a list of all available (top-level) categories is this now though:
Code: Select all
ktraderclient5 --servicetype SystemSettingsCategory --constraint "[X-KDE-System-Settings-Parent-Category] == ''" | grep DesktopEntryName


You could of course also look at the other files that are already there... ;)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]