Skip to content

Commit

Permalink
fix: use applycation name as new deepin-manual id
Browse files Browse the repository at this point in the history
Change-Id: I185349a3bb39bec97c94beea296867932642804c
  • Loading branch information
Iceyer committed Feb 28, 2018
1 parent 4e6a803 commit dfb05ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/widgets/dapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit dfb05ca

Please sign in to comment.