-
Notifications
You must be signed in to change notification settings - Fork 57
sync: from linuxdeepin/dde-session-shell #422
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
Conversation
dcede9d to
968b667
Compare
Reviewer's GuideSynchronized inhibitor warning view implementation to support containerized applications by removing local file existence checks and integrating a DBus-based fallback for icon retrieval, along with the necessary header and constant additions. Sequence Diagram for Icon Retrieval with DBus FallbacksequenceDiagram
participant IWV as InhibitWarnView
participant DUtil
participant DSGA as "Dtk::Core::DSGApplication"
participant DDBS as DDBusSender
participant AM as "org.desktopspec.ApplicationManager1"
Note over IWV: In setInhibitorList(), for an inhibitor (e.g., containerized app)
IWV->>IWV: iconName = executable_info.fileName()
opt If icon not found in theme AND ENABLE_DSS_SNIPE defined
IWV->>DSGA: getId(inhibitor.pid)
DSGA-->>IWV: appId
IWV->>DUtil: escapeToObjectPath(appId)
DUtil-->>IWV: escapedAppIdPathSegment
IWV->>IWV: amDBusAppPath = AMDBUS_PATH_APP_PREFIX + "/" + escapedAppIdPathSegment
IWV->>DDBS: Create DDBusSender for AMDBUS_SERVICE
DDBS->>DDBS: path(amDBusAppPath)
DDBS->>DDBS: interface(AMDBUS_APP_INTERFACE)
DDBS->>DDBS: property("Icons")
DDBS->>AM: get()
AM-->>DDBS: QDBusReply (Icons data)
DDBS-->>IWV: reply
alt reply.isValid()
IWV->>IWV: iconName = extract from reply.value()
else
IWV->>IWV: Log error(reply.error().message())
end
end
IWV->>IWV: icon = QIcon::fromTheme(iconName)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
968b667 to
f0a1843
Compare
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.
Hey @deepin-ci-robot - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
f0a1843 to
0c4be43
Compare
deepin pr auto review关键摘要:
是否建议立即修改: |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-ci-robot The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Synchronize source files from linuxdeepin/dde-session-shell.
Source-pull-request: linuxdeepin/dde-session-shell#9
Summary by Sourcery
Implement a fallback mechanism in InhibitWarnView to retrieve application icons via the Dtk ApplicationManager1 D-Bus service when the executable path is inaccessible or theme icons are missing
Bug Fixes:
Enhancements: