[kwin_rules_dialog] Add desktop file

This is needed for correct taskbar indentification
This commit is contained in:
Nicolas Fella 2022-01-08 20:16:34 +01:00
parent 72c0974a06
commit 21212a71ec
3 changed files with 9 additions and 0 deletions

View file

@ -58,3 +58,5 @@ kcoreaddons_desktop_to_json(kcm_kwinrules "kcm_kwinrules.desktop" SERVICE_TYPES
install(TARGETS kcm_kwinrules DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms)
install(FILES kcm_kwinrules.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
kpackage_install_package(package kcm_kwinrules kcms)
install(FILES org.kde.kwin_rules_dialog.desktop DESTINATION ${KDE_INSTALL_APPDIR})

View file

@ -25,6 +25,7 @@ int main(int argc, char* argv[])
app.setApplicationName("kwin_rules_dialog");
app.setWindowIcon(QIcon::fromTheme("preferences-system-windows-actions"));
app.setApplicationVersion("2.0");
app.setDesktopFileName(QStringLiteral("org.kde.kwin_rules_dialog"));
QCommandLineParser parser;
parser.setApplicationDescription(i18n("KWinRules KCM launcher"));

View file

@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Window Rules
NoDisplay=true
Exec=kwin_rules_dialog
Icon=preferences-system-windows-actions