Commit 97a88917 authored by Andrius Štikonas's avatar Andrius Štikonas

systemmonitor: Add a desktop file.

BUG: 385702
parent 06161b8c
......@@ -28,3 +28,4 @@ target_link_libraries(systemmonitor
)
install(TARGETS systemmonitor DESTINATION ${KDE_INSTALL_BINDIR})
install(PROGRAMS org.kde.systemmonitor.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
......@@ -29,6 +29,9 @@ int main(int argc, char** argv)
QApplication app(argc, argv);
app.setOrganizationDomain(QStringLiteral("kde.org"));
app.setDesktopFileName(QStringLiteral("org.kde.systemmonitor"));
QDBusConnection con = QDBusConnection::sessionBus();
if (!con.registerService(QStringLiteral("org.kde.systemmonitor"))) {
return 0;
......
# KDE Config File
[Desktop Entry]
Type=Application
Name=System Monitor
Icon=utilities-system-monitor
NoDisplay=true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment