mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-07 10:51:45 +00:00
Add dolphin dbus service
This commit is contained in:
parent
c725848709
commit
1b3ea64abb
|
@ -19,7 +19,7 @@ ecm_setup_version(${DOLPHIN_VERSION} VARIABLE_PREFIX DOLPHINPRIVATE
|
|||
SOVERSION 5
|
||||
)
|
||||
|
||||
find_package(KF5 REQUIRED COMPONENTS DocTools Init KCMUtils KDELibs4Support NewStuff CoreAddons I18n)
|
||||
find_package(KF5 REQUIRED COMPONENTS DocTools Init KCMUtils KDELibs4Support NewStuff CoreAddons I18n DBusAddons)
|
||||
find_package(KF5 COMPONENTS Activities)
|
||||
|
||||
find_package(Phonon4Qt5 CONFIG REQUIRED)
|
||||
|
|
|
@ -237,6 +237,7 @@ target_link_libraries(kdeinit_dolphin
|
|||
KF5::KDELibs4Support
|
||||
KF5::I18n
|
||||
KF5::CoreAddons
|
||||
KF5::DBusAddons
|
||||
)
|
||||
|
||||
if (KF5Activities_FOUND)
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "dolphinmainwindow.h"
|
||||
#include "dolphin_generalsettings.h"
|
||||
|
||||
#include <KDBusService>
|
||||
#include <KAboutData>
|
||||
#include <QCommandLineParser>
|
||||
#include <QCommandLineOption>
|
||||
|
@ -75,6 +76,8 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
|
|||
|
||||
KAboutData::setApplicationData(aboutData);
|
||||
|
||||
KDBusService dolphinDBusService;
|
||||
|
||||
QCommandLineParser parser;
|
||||
parser.addVersionOption();
|
||||
parser.addHelpOption();
|
||||
|
|
Loading…
Reference in New Issue
Block a user