-
Notifications
You must be signed in to change notification settings - Fork 86
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
fix: app blocked when AM is unavailable #396
Conversation
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#396
f288062
to
74b86db
Compare
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#396
74b86db
to
2f6628c
Compare
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#396
We don't block application when AM is unavailable.
2f6628c
to
876187a
Compare
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#396
@@ -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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
虽然挪到前面可以避免这个提交引入问题,不过要加一个新提交修复一下,再下面的流程中,pidfd还是需要关闭的吧。
[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 |
We don't block application when AM is unavailable.