-
Notifications
You must be signed in to change notification settings - Fork 58
sync: from linuxdeepin/dde-session-shell #417
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
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#7
deepin pr auto review关键摘要:
是否建议立即修改:
|
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: 1 issue found
- 🟢 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.
@@ -1209,6 +1209,11 @@ void GreeterWorker::prepareShutdownSound() | |||
{ | |||
QDBusInterface soundPlayerInter("org.deepin.dde.SoundThemePlayer1", "/org/deepin/dde/SoundThemePlayer1", | |||
"org.deepin.dde.SoundThemePlayer1", QDBusConnection::systemBus()); | |||
soundPlayerInter.call("PrepareShutdownSound", static_cast<int>(m_model->currentUser()->uid())); | |||
if (!soundPlayerInter.isValid() || !m_model->currentUser()) { | |||
qCWarning(DDE_SHELL) << "Sound player interface is not valid or current user is null:" << soundPlayerInter.isValid(); |
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.
suggestion: Improve warning log to distinguish invalid interface vs null user
Log both conditions separately, for example include both soundPlayerInter.isValid()
and whether m_model->currentUser()
is null in the warning.
qCWarning(DDE_SHELL) << "Sound player interface is not valid or current user is null:" << soundPlayerInter.isValid(); | |
qCWarning(DDE_SHELL) << "Cannot prepare shutdown sound, interface valid? " << soundPlayerInter.isValid() | |
<< ", current user null? " << (m_model->currentUser() == nullptr); |
Reviewer's GuideIntroduces guard checks around the SoundThemePlayer DBus call in greeterworker to validate the interface and user before invoking shutdown sound, logging warnings and preventing invalid calls. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-ci-robot, yixinshark 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 |
Synchronize source files from linuxdeepin/dde-session-shell.
Source-pull-request: linuxdeepin/dde-session-shell#7
Summary by Sourcery
Bug Fixes: