Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Architecture: any
Depends:
${shlibs:Depends},
${misc:Depends},
dde-application-manager (>> 1.2.2),
dde-application-manager (>> 1.2.51),
dde-application-wizard-daemon-compat,
libdtk6gui(>= 6.0.19),
libdtk6declarative(>= 6.0.19),
Expand Down
5 changes: 5 additions & 0 deletions src/ddeintegration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,8 @@ PUBLIC
Qt::Concurrent
PRIVATE
Qt::Core Qt::Gui ${DTK_NS}::Core ${ASQT_NS} launcher-utils)

if (HAVE_DDE_API_EVENTLOGGER)
target_compile_definitions(dde-integration-dbus PRIVATE HAVE_DDE_API_EVENTLOGGER)
target_link_libraries(dde-integration-dbus PRIVATE DDEAPI::EventLogger)
endif()
4 changes: 4 additions & 0 deletions src/ddeintegration/appmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ bool AppMgr::launchApp(const QString &desktopId)
const auto path = amAppIface->path();
QProcess process;
process.setProcessChannelMode(QProcess::MergedChannels);
#ifdef HAVE_DDE_API_EVENTLOGGER
process.start("dde-am", {"--by-user", "--launch-type", "dde-launchpad", path});
#else
process.start("dde-am", {"--by-user", path});
#endif
if (!process.waitForFinished()) {
qCWarning(logDdeIntegration) << "Failed to launch the desktopId:" << desktopId << process.errorString();
return false;
Expand Down
Loading