Bug 17913 - Autologin configuration in MCC does not work (with SDDM and XDM at least)
Summary: Autologin configuration in MCC does not work (with SDDM and XDM at least)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: 6dev1, PATCH
: 19020 (view as bug list)
Depends on:
Blocks: 17523 18334
  Show dependency treegraph
 
Reported: 2016-03-08 19:54 CET by William Kenney
Modified: 2016-08-13 03:02 CEST (History)
10 users (show)

See Also:
Source RPM: drakxtools
CVE:
Status comment:


Attachments
A patch to add support for configuring /etc/sddm.conf (2.12 KB, patch)
2016-03-09 15:48 CET, Nicolas Salguero
Details | Diff
A patch to add support for configuring /etc/sddm.conf (2.23 KB, patch)
2016-03-10 10:36 CET, Nicolas Salguero
Details | Diff
A patch to correctly set the "Session" entry of $HOME/.dmrc (1.08 KB, patch)
2016-03-10 11:29 CET, Nicolas Salguero
Details | Diff

Description William Kenney 2016-03-08 19:54:46 CET
Description of problem:

In Plasma:

MCC -> Boot -> Set up autologin -> Yes, I want autologin -> Ok

Reboot system, no autologin
William Kenney 2016-03-08 19:55:14 CET

Whiteboard: (none) => 6-dev1

Rémi Verschelde 2016-03-09 10:42:44 CET

CC: (none) => doktor5000, mageia
Assignee: bugsquad => pkg-bugs
Summary: No autologin => Autologin configuration in MCC does not work (with SDDM at least)
Whiteboard: 6-dev1 => 6dev1

Rémi Verschelde 2016-03-09 10:44:26 CET

Blocks: (none) => 17523

Comment 1 Nicolas Salguero 2016-03-09 13:08:57 CET
Hi,

Maybe the problem is equivalent to bug 17616: drakautologin might need a patch to be able to configure autologin in /etc/sddm.conf because the "direct method" using startx is not working anymore.

Best regards,

Nico.

CC: (none) => nicolas.salguero

Comment 2 Nicolas Salguero 2016-03-09 15:48:23 CET
Created attachment 7531 [details]
A patch to add support for configuring /etc/sddm.conf

This patch applies after the one from bug 17616
Nicolas Salguero 2016-03-09 15:49:09 CET

Keywords: (none) => PATCH
Source RPM: (none) => drakxtools

Comment 3 Florian Hubold 2016-03-09 21:18:30 CET
@Thierry: Any objections? This will probably be necessary for all DMs nowadays ...

Assignee: pkg-bugs => thierry.vignaud

Comment 4 Nicolas Salguero 2016-03-10 10:36:59 CET
Created attachment 7540 [details]
A patch to add support for configuring /etc/sddm.conf

Oops, in the previous version of the patch, I forgot the disabling of autologin.

Attachment 7531 is obsolete: 0 => 1

Comment 5 Nicolas Salguero 2016-03-10 11:29:09 CET
Created attachment 7543 [details]
A patch to correctly set the "Session" entry of $HOME/.dmrc

For example, without that patch, the "Session" entry of $HOME/.dmrc contains "02LXDE" (or "01Plasma") whereas the file in /usr/share/xsessions is LXDE.desktop (or 01plasma.desktop, with lower "p"), which causes LXDM to not being able to log the user when the configured session for LXDM is "Default".

This patch applies after drakxtools-17.19-sddm-improved.patch.
Comment 6 Nicolas Salguero 2016-03-10 11:32:10 CET
Moreover, currently drakautologin only proposes "default" as choice for the session because it uses /sbin/chksession.  To solve that problem (bug 17617), I made a patch that change the behaviour of chksession to look into /usr/share/xsessions.

With all those patches, I was able to autologin into Plasma, LXDE, Openbox or IceWM from either SDDM or LXDM as display manager (I did not test other DM/DE combinations).

Best regards,

Nico.
Comment 7 José Jorge 2016-04-02 11:50:58 CEST
Any news on this patch?

CC: (none) => lists.jjorge

Marja Van Waes 2016-04-05 20:57:49 CEST

Keywords: (none) => 6dev1
CC: (none) => marja11
Whiteboard: 6dev1 => (none)

Comment 8 Sébastien Chopin 2016-04-25 10:32:41 CEST
Autologin don't work with SDDM or XDM :-(

Status: NEW => ASSIGNED
CC: (none) => contact

Comment 9 Marja Van Waes 2016-04-25 11:00:17 CEST
(In reply to Sébastien Chopin from comment #8)
> Autologin don't work with SDDM or XDM :-(

Thanks for the information about XDM

However, please do not change a bug's status to ASSIGNED, until you yourself are fixing it!

Status: ASSIGNED => NEW
Summary: Autologin configuration in MCC does not work (with SDDM at least) => Autologin configuration in MCC does not work (with SDDM and XDM at least)

Marja Van Waes 2016-05-03 12:58:31 CEST

Blocks: (none) => 18334

Comment 10 Nicolas Lécureuil 2016-05-05 11:25:40 CEST
Thierry, can you please review those patches 

thank you.
Comment 11 Thierry Vignaud 2016-05-09 23:33:14 CEST
I'll look at them
john gibbe 2016-06-29 08:47:00 CEST

CC: (none) => john.gibbe

Comment 12 Italo Ramirez 2016-07-24 07:25:30 CEST
Just as a reminder... SDDM autologin still does not work!

;)

CC: (none) => gualadrake

Comment 13 Marja Van Waes 2016-07-24 09:40:41 CEST
*** Bug 19020 has been marked as a duplicate of this bug. ***

CC: (none) => wim

Comment 14 Marja Van Waes 2016-07-24 09:42:16 CEST
Reassigning to tmb, because he seems to be the one currently working on it.

(See https://bugs.mageia.org/show_bug.cgi?id=19020#c3 )

Assignee: thierry.vignaud => tmb

Thierry Vignaud 2016-08-04 11:45:52 CEST

Status: NEW => ASSIGNED
CC: (none) => thierry.vignaud
Assignee: tmb => thierry.vignaud

Comment 15 Mageia Robot 2016-08-13 00:53:55 CEST
commit d72df37ce84c0fc006c141fb5f44a7034a69f427
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Wed Aug 3 16:52:00 2016 -0400

    autologin: add support for SDDM (mga#17913)
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=d72df37ce84c0fc006c141fb5f44a7034a69f427
Comment 16 Thierry Vignaud 2016-08-13 03:02:11 CEST
Fixed in git

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.