Commit 162abb39 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Declare as DBusActivatable and install D-Bus service file

KDBusService provides the needed code support already out-of-the-box.
parent 50cf9fb0
Pipeline #118185 passed with stage
in 3 minutes and 42 seconds
......@@ -159,6 +159,7 @@ include(FeatureSummary)
include(GenerateExportHeader)
include(ECMSetupVersion)
include(ECMGenerateHeaders)
include(ECMGenerateDBusServiceFile)
include(CMakePackageConfigHelpers)
configure_file(config-upnp-qt.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-upnp-qt.h)
......@@ -176,8 +177,20 @@ if (BUILD_TESTING)
endif()
add_subdirectory(doc)
if (KF5DBusAddons_FOUND)
ecm_generate_dbus_service_file(
NAME org.kde.elisa
EXECUTABLE ${KDE_INSTALL_FULL_BINDIR}/elisa
DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR}
)
set(ELISA_DBUSACTIVATABLE "DBusActivatable=true")
else()
set(ELISA_DBUSACTIVATABLE)
endif()
configure_file(org.kde.elisa.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.elisa.desktop @ONLY)
install(
PROGRAMS org.kde.elisa.desktop
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.elisa.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
......
......@@ -89,3 +89,4 @@ Terminal=false
Type=Application
MimeType=audio/aac;audio/mp4;audio/mpeg;audio/mpegurl;audio/vnd.rn-realaudio;audio/vorbis;audio/x-flac;audio/x-mp3;audio/x-mpegurl;audio/x-ms-wma;audio/x-musepack;audio/x-oggflac;audio/x-pn-realaudio;audio/x-scpls;audio/x-speex;audio/x-vorbis;audio/x-wav;application/x-ogm-audio;audio/x-vorbis+ogg;audio/ogg;
X-GNOME-SingleWindow=true
@ELISA_DBUSACTIVATABLE@
......@@ -272,7 +272,7 @@ void ElisaApplication::activateRequested(const QStringList &arguments, const QSt
void ElisaApplication::openRequested(const QList<QUrl> &uris)
{
Q_UNUSED(uris)
openFiles(uris);
}
void ElisaApplication::appHelpActivated()
......
Supports Markdown
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