Bug 1194518

Summary: mate-screensaver user switch not working for lightdm
Product: [Fedora] Fedora Reporter: Frank Ch. Eigler <fche>
Component: mate-screensaverAssignee: Wolfgang Ulbrich <raveit65.sun>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dan.mashal, raveit65.sun, stefano
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mate-screensaver-1.8.1-2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-28 10:23:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
lock-screen none

Description Frank Ch. Eigler 2015-02-20 02:28:25 UTC
With gdm disabled/replaced by lightdm on our fedora21 workstation,
it would be nice if mate-screensaver's "Switch User" functionality
worked.  But when it is clicked, there is only a brief black screen,
and no lightdm re-engagement.

It is conceivable that this is because of code in gs-lock-plug.c
do_user_switch(), which appears to decide which display-manager to
send a message to by the presence of programs in the $PATH.  If
gdm is on the path (and it will probably be, since it's hard to
outright remove on a machine), the gs-lock-plug.c code doesn't seem
to want to go to the lightdm option.
(The above speculation is based on only eyeballing the source code.)

Comment 1 Wolfgang Ulbrich 2015-02-20 11:25:10 UTC
Hmm, here the screensaver logscreen works well and you have a button to swich the user.

Comment 2 Wolfgang Ulbrich 2015-02-20 11:26:18 UTC
Created attachment 993871 [details]
lock-screen

Comment 3 Wolfgang Ulbrich 2015-02-20 11:29:55 UTC
opps, sorry you're right, pressing the button does n't have any effect.

Comment 4 Wolfgang Ulbrich 2015-02-20 11:51:02 UTC
weird, here on f20 baremetal system it works, need to test it later on f21 baremetal.

Comment 5 Wolfgang Ulbrich 2015-02-20 12:29:15 UTC
Ok, the prob is here in the code.
https://github.com/mate-desktop/mate-screensaver/blob/master/src/gs-lock-plug.c#L212
I checks first for gdm, than for mdm and at least for lightdm.
Means, if gdm is installed on your system it never starts lightdm login.
After i removed gdm from my f21 VM the user-switch is working.
Try to remove gdm, if you can get rid of gnome-shell for the momment.

Comment 6 Frank Ch. Eigler 2015-02-20 12:31:03 UTC
The problem is that -some- users on the machine like gnome3/-shell,
others prefer mate.

Comment 7 Fedora Update System 2015-02-20 16:40:57 UTC
mate-screensaver-1.8.1-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/mate-screensaver-1.8.1-2.fc20

Comment 8 Fedora Update System 2015-02-20 16:41:02 UTC
mate-screensaver-1.8.1-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/mate-screensaver-1.8.1-2.fc21

Comment 9 Fedora Update System 2015-02-20 16:41:06 UTC
mate-screensaver-1.8.1-2.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/mate-screensaver-1.8.1-2.el7

Comment 10 Wolfgang Ulbrich 2015-02-20 16:45:30 UTC
I have set lightdm as 2 condition and gdm as 3 condition, in result that if both DMs are installed lightdm is prefered.
I don't expect that a user has both installed and prefer gdm ;)

Comment 11 Fedora Update System 2015-02-20 20:42:02 UTC
Package mate-screensaver-1.8.1-2.el7:
* should fix your issue,
* was pushed to the Fedora EPEL 7 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing mate-screensaver-1.8.1-2.el7'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-0885/mate-screensaver-1.8.1-2.el7
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2015-02-28 10:23:33 UTC
mate-screensaver-1.8.1-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-03-01 06:52:16 UTC
mate-screensaver-1.8.1-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2015-03-08 22:47:11 UTC
mate-screensaver-1.8.1-2.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.