Merge lp:~bfiller/unity-2d/wait-for-session-again into lp:unity-2d/3.0
Proposed by
Florian Boucault
Status: | Merged |
---|---|
Merge reported by: | Aurélien Gâteau |
Merged at revision: | not available |
Proposed branch: | lp:~bfiller/unity-2d/wait-for-session-again |
Merge into: | lp:unity-2d/3.0 |
Diff against target: |
30 lines (+2/-4) 1 file modified
libunity-2d-private/src/gnomesessionclient.cpp (+2/-4) |
To merge this branch: | bzr merge lp:~bfiller/unity-2d/wait-for-session-again |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aurélien Gâteau (community) | Needs Fixing | ||
Review via email: mp+54436@code.launchpad.net |
Description of the change
This is to fix LP: #716167 and LP: #706248. We thought it was previously fixed but I just ran into a case where it didn't work using the latest code. Debugging showed me the app was being destroyed before queryEndSession() even got called the first time and it didn't wait because m_waitingForEnd
So the fix is to change the default to true. This should handle all the known cases now. I also lowered the timeout to 3 secs would should be sufficient.
To post a comment you must log in.
That's weird, but sometimes gnome-session is full of mystery.
I would suggest however to keep m_waitingForEnd Session to false by default and set it to true only if we successfully register with gnome-session (ie in slotRegisterCli entFinished( )).