Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: app blocked when AM is unavailable #396

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

18202781743
Copy link
Contributor

We don't block application when AM is unavailable.

@18202781743 18202781743 requested review from zccrs and kegechen and removed request for zccrs December 8, 2023 03:51
deepin-ci-robot added a commit to linuxdeepin/dtk6core that referenced this pull request Dec 8, 2023
Synchronize source files from linuxdeepin/dtkcore.

Source-pull-request: linuxdeepin/dtkcore#396
deepin-ci-robot added a commit to linuxdeepin/dtk6core that referenced this pull request Dec 8, 2023
Synchronize source files from linuxdeepin/dtkcore.

Source-pull-request: linuxdeepin/dtkcore#396
deepin-ci-robot added a commit to linuxdeepin/dtk6core that referenced this pull request Dec 8, 2023
Synchronize source files from linuxdeepin/dtkcore.

Source-pull-request: linuxdeepin/dtkcore#396
src/dsgapplication.cpp Outdated Show resolved Hide resolved
  We don't block application when AM is unavailable.
deepin-ci-robot added a commit to linuxdeepin/dtk6core that referenced this pull request Dec 8, 2023
Synchronize source files from linuxdeepin/dtkcore.

Source-pull-request: linuxdeepin/dtkcore#396
@18202781743 18202781743 requested a review from zccrs December 8, 2023 08:57
@@ -52,6 +66,11 @@ QByteArray DSGApplication::id()

QByteArray DSGApplication::getId(qint64 pid)
{
if (!isServiceActivatable("org.desktopspec.ApplicationManager1")) {
qCInfo(dsgApp) << "Can't getId from AM for the " << pid << ", because AM is unavailable.";
return QByteArray();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

虽然挪到前面可以避免这个提交引入问题,不过要加一个新提交修复一下,再下面的流程中,pidfd还是需要关闭的吧。

@deepin-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, zccrs

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@18202781743 18202781743 merged commit af8b766 into linuxdeepin:master Dec 8, 2023
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants