[logind] Correct property name to fix logind session
ClosedPublic

Authored by romangg on Jul 12 2017, 9:06 PM.

Details

Summary

In D6291 a small naming mistake led to Wayland session with logind not working anymore. Patch to make it work again.

Diff Detail

Repository
R108 KWin
Lint
Lint Skipped
Unit
Unit Tests Skipped
romangg created this revision.Jul 12 2017, 9:06 PM
Restricted Application added a subscriber: kwin. · View Herald TranscriptJul 12 2017, 9:06 PM
broulik added inline comments.
logind.cpp
67

Should the variable also be named Active?

romangg added inline comments.
logind.cpp
67

Yea, thought about it. It was probably called s_login1ActivateProperty for now because in the ConsoleKit case it has the value "activate".

But IMO calling it s_login1ActiveProperty as you proposed would make more sense because the variable/value describes a status. I can change it if others (@erickoegel?) think the same. Either with this diff or in a seperate one.

Oh wow, yes the property for logind is "Active" and in ConsoleKit2 "active". My brain must have gone out to lunch there when cleaning up the diff to submit it. So s_login1ActiveProperty/s_ck2ActiveProperty makes sense. Sorry about that.

romangg updated this revision to Diff 16653.Jul 13 2017, 1:52 PM

Also change the variable names.

romangg marked 2 inline comments as done.Jul 13 2017, 1:53 PM
graesslin accepted this revision.Jul 13 2017, 4:50 PM
graesslin added a subscriber: graesslin.

That means my session worked again for at least a week! Wohoo the stability starts to reach the state of Pre-Qt 5.9

This revision is now accepted and ready to land.Jul 13 2017, 4:50 PM
This revision was automatically updated to reflect the committed changes.
cfeck added a subscriber: cfeck.Jul 14 2017, 11:10 PM
cfeck added inline comments.
logind.cpp
75

Does this need to be changed, too?

erickoegel added inline comments.Jul 15 2017, 4:12 AM
logind.cpp
75

Yes, it should be "active" as well. Sorry about that.

usta added a subscriber: usta.Jul 15 2017, 6:49 AM
usta added inline comments.
logind.cpp
217

is this will be Active or Activate

graesslin added inline comments.Jul 15 2017, 9:01 AM
romangg marked an inline comment as done.Jul 15 2017, 9:19 AM
romangg added inline comments.
logind.cpp
217

Activate should be right here. Here it's an action (to "Activate" the session) and not a status (is the session currently "Active"?).

romangg marked 2 inline comments as done.Jul 15 2017, 9:20 AM
erickoegel added inline comments.Jul 15 2017, 11:04 AM
logind.cpp
75

That's correct, thanks!