Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 818124 | Differences between
and this patch

Collapse All | Expand All

(-)a/sessionmanagementbackend.cpp (-4 / +5 lines)
Lines 137-143 void LogindSessionBackend::shutdown() Link Here
137
{
137
{
138
    // logind will confirm credentials with the caller, if the app quits after sending this
138
    // logind will confirm credentials with the caller, if the app quits after sending this
139
    // this may fail
139
    // this may fail
140
    // its not really needed for suspend tasks where the calling app won't be closing
141
    m_login1->PowerOff(true).waitForFinished();
140
    m_login1->PowerOff(true).waitForFinished();
142
}
141
}
143
142
Lines 148-164 void LogindSessionBackend::reboot() Link Here
148
147
149
void LogindSessionBackend::suspend()
148
void LogindSessionBackend::suspend()
150
{
149
{
151
    m_login1->Suspend(true);
150
    // these need to be synchronous as well - ksmserver-logout-greeter specifically calls these
151
    // and will quit immediately after
152
    m_login1->Suspend(true).waitForFinished();
152
}
153
}
153
154
154
void LogindSessionBackend::hybridSuspend()
155
void LogindSessionBackend::hybridSuspend()
155
{
156
{
156
    m_login1->HybridSleep(true);
157
    m_login1->HybridSleep(true).waitForFinished();
157
}
158
}
158
159
159
void LogindSessionBackend::hibernate()
160
void LogindSessionBackend::hibernate()
160
{
161
{
161
    m_login1->Hibernate(true);
162
    m_login1->Hibernate(true).waitForFinished();;
162
}
163
}
163
164
164
bool LogindSessionBackend::canShutdown() const
165
bool LogindSessionBackend::canShutdown() const

Return to bug 818124