Merge lp:~mterry/gsettings-ubuntu-touch-schemas/lax-greeter-perms into lp:gsettings-ubuntu-touch-schemas

Proposed by Michael Terry
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 30
Merged at revision: 30
Proposed branch: lp:~mterry/gsettings-ubuntu-touch-schemas/lax-greeter-perms
Merge into: lp:gsettings-ubuntu-touch-schemas
Diff against target: 12 lines (+1/-1)
1 file modified
accountsservice/50-com.ubuntu.AccountsService.pkla (+1/-1)
To merge this branch: bzr merge lp:~mterry/gsettings-ubuntu-touch-schemas/lax-greeter-perms
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+220851@code.launchpad.net

Commit message

Allow the greeter to set AccountsService fields even when it is an inactive session (to reduce races between setting volume and logging in)

Description of the change

Allow the greeter to set AccountsService fields even when it is an inactive session (to reduce races between setting volume and logging in).

In testing the split greeter silo, it was noticed that occasionally volume wouldn't be synced correctly.

It seems that this is because (A) indicator-sound does some buffering when syncing changes to keep updates to 1-a-second (B) the user can swipe into the session before the updates hit dbus.

When that happens, the dbus call hits AccountsService after the greeter session is marked inactive by logind. So it is denied and the user session never sees the update.

Allowing the greeter to set fields while inactive doesn't seem like a problem. I don't think it can get up to mischief.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

looks fine, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'accountsservice/50-com.ubuntu.AccountsService.pkla'
2--- accountsservice/50-com.ubuntu.AccountsService.pkla 2014-03-13 20:44:42 +0000
3+++ accountsservice/50-com.ubuntu.AccountsService.pkla 2014-05-23 23:53:22 +0000
4@@ -2,7 +2,7 @@
5 Identity=unix-user:lightdm
6 Action=com.ubuntu.AccountsService.GreeterChangeAny
7 ResultAny=no
8-ResultInactive=no
9+ResultInactive=yes
10 ResultActive=yes
11
12 [Allow greeter to read fields]

Subscribers

People subscribed via source and target branches