Skip to content

Commit dc92279

Browse files
committed
feat: pass launch_type when launching apps from launcher
启动器启动应用时传入 launch_type 参数,用于应用启动埋点统计。 launch_type=1 表示从启动器点击启动。 Pass launch_type parameter when launching applications from launcher for application launch event reporting. launch_type=1 indicates the app was launched from the launcher. PMS: TASK-388657
1 parent 2f9b210 commit dc92279

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ddeintegration/appmgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ bool AppMgr::launchApp(const QString &desktopId)
184184
const auto path = amAppIface->path();
185185
QProcess process;
186186
process.setProcessChannelMode(QProcess::MergedChannels);
187-
process.start("dde-am", {"--by-user", path});
187+
process.start("dde-am", {"--by-user", "--launch-type", "1", path});
188188
if (!process.waitForFinished()) {
189189
qCWarning(logDdeIntegration) << "Failed to launch the desktopId:" << desktopId << process.errorString();
190190
return false;

0 commit comments

Comments
 (0)