Merge lp:~muktupavels/lightdm/improve-multiseat-support into lp:lightdm
Proposed by
Alberts Muktupāvels
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Robert Ancell | ||||
Approved revision: | 1877 | ||||
Merged at revision: | 1887 | ||||
Proposed branch: | lp:~muktupavels/lightdm/improve-multiseat-support | ||||
Merge into: | lp:lightdm | ||||
Diff against target: |
43 lines (+6/-3) 2 files modified
src/seat-xlocal.c (+4/-1) tests/scripts/xdg-seat.conf (+2/-2) |
||||
To merge this branch: | bzr merge lp:~muktupavels/lightdm/improve-multiseat-support | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Robert Ancell | Approve | ||
Review via email: mp+202951@code.launchpad.net |
Commit message
Improve multiseat support
Description of the change
With current lightdm version I have two following problems in multiseat setup:
1) First seat user logs in, all is ok. When second seat user logs in, first seat vt gets switched. User needs use Ctrl+Alt+F7 to get back to desktop.
2) Second seat user can not access audio devices. In sound settings only 'dummy output' is listed.
This commit will fix both problems.
To post a comment you must log in.
This fails when you run 'make check'. Specifically the xdg-seat test (cd tests ; ./test-xdg-seat). The fix is quite trivial but you should make it to show that you know the tests and think if this is the correct behaviour.
The removal of the VT check in seat_xlocal_ get_active_ session () doesn't really make sense. In a multi-seat case you should probably check seat_get_ string_ property (seat, "xdg-seat") instead and do something different than checking if any session is on this VT.
You should replace:
(xdg_seat && strcmp (xdg_seat, "seat0") == 0)
with
g_strcmp0 (xdg_seat, "seat0") == 0
as this is more readable.