diff --git a/src/widgets/dapplication.cpp b/src/widgets/dapplication.cpp index 1500aa8c5..c69096cda 100644 --- a/src/widgets/dapplication.cpp +++ b/src/widgets/dapplication.cpp @@ -658,10 +658,8 @@ void DApplication::handleHelpAction() { #ifdef Q_OS_LINUX QString appid = applicationName(); - if (!qgetenv("FLATPAK_APPID").isEmpty()) { - appid = qgetenv("FLATPAK_APPID"); - } + // new interface use applicationName as id QDBusInterface manual("com.deepin.Manual.Open", "/com/deepin/Manual/Open", "com.deepin.Manual.Open"); @@ -671,6 +669,9 @@ void DApplication::handleHelpAction() } #ifdef DTK_DMAN_PORTAL + if (!qgetenv("FLATPAK_APPID").isEmpty()) { + appid = qgetenv("FLATPAK_APPID"); + } QDBusInterface legacydman("com.deepin.dman", "/com/deepin/dman", "com.deepin.dman");