Description of problem: Activation of autologin in MCC writes a section [Autologin] to /etc/sddm.conf [Autologin] User=bequimao Session=.desktop That leads to the so called "good luck" error at reboot. The error message in journal reads: Unable to find autologin session entry ".desktop" Fixed: [Autologin] User=bequimao Session=01plasma.desktop The name 01plasma.desktop refers to the filename in /usr/share/xsession. I did not test with different display managers, and I do not know if autologin can be selected in the installer. Version-Release number of selected component (if applicable): How reproducible: Tested with a fresh installation of Mageia-6-RC-x86_64-DVD See my original comment https://bugs.mageia.org/show_bug.cgi?id=19216#c19 Ulrich Steps to Reproduce: 1. 2. 3.
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=17617
Not sure I'm correctly assigning, please reassign if needed.
CC: (none) => marja11, neoclustAssignee: bugsquad => thierry.vignaudSummary: MCC: Set up autologin corrupts file /etc/sddm.conf => MCC: Set up autologin corrupts file /etc/sddm.conf, causing X to failSource RPM: (none) => drakxtools
The fix of desktop-common-data and xdg-compliance https://bugs.mageia.org/show_bug.cgi?id=17617#c16 didn't change anything. The directory /etc/X11/wmsession.d/ is empty. Further info: ----------------------------------------------- [root@localhost ~]# cat /etc/sysconfig/desktop DISPLAYMANAGER=sddm [root@localhost ~]# [root@localhost ~]# ls /usr/share/xsessions/ 01plasma.desktop icewm.desktop xfce.desktop [root@localhost ~]# ----------------------------------------------- There should be a validation before updating /etc/sddm.conf. Ulrich
1) vmwsessions files have been obsoleted by Colin. 2) You validated the changes by pressing "Ok". 3) I just tested, it correctly writes "Session=01plasma.desktop" to /etc/sddm.conf
Keywords: (none) => NEEDINFOCC: (none) => mageia
CC: (none) => wilcal.int
I understand now what has happened. I marked 'Yes, I want autologin ...' and let the selection Default desktop free. Autologin works now, if I choose Plasma as default desktop. The selection 'default' still leads to the 'good luck' error. There should be really a validation of the entries. The bright side is - Other users than me were also trapped into this issue. - I am really confident that the 'good luck' error is solved (including autologin) on my AMD/ATI hardware after rebuild of all isos. Switched severity from critical to enhancement. Thanks, Ulrich
Severity: critical => enhancement
So if I understand correctly setting up autologin with the "default" desktop entry leads to an empty `.desktop` link and a non-booting DM? That's still pretty critical to me, but I'll let Thierry evaluate.
Keywords: NEEDINFO => (none)Severity: enhancement => normal
Summary: MCC: Set up autologin corrupts file /etc/sddm.conf, causing X to fail => MCC: Set up autologin with "default" DE writes corrupted "Session=.desktop" in /etc/sddm.conf, causing X to fail
The question is should chksession -l still print out "default"? Also someone should review the different DE in order to have a global view on what value each DE expects.
Increasing priority as this can easily lead to a non-working DE.
Priority: Normal => release_blockerBlocks: (none) => 15527Severity: normal => major
Source RPM: drakxtools => drakxtools, desktop-common-data
chksession should not print out 'default', but that should be fixed now. BTW, chksession's lack of an ordering mechanism so that it prints out the correct desktop when none is listed in /etc/sysconfig/desktop, is a different issue than this bug.
CC: (none) => luigiwalser
(In reply to David Walser from comment #8) > chksession should not print out 'default', but that should be fixed now. $ chksession -l Plasma GNOMEClassic GNOME IceWM XfceSession default failsafe > BTW, chksession's lack of an ordering mechanism so that it prints out the > correct desktop when none is listed in /etc/sysconfig/desktop, is a > different issue than this bug. Speaking of ordering: $ chksession -L Plasma=01 GNOMEClassic= GNOME= IceWM= XfceSession= $ env | grep _DESKTOP | grep XDG XDG_SESSION_DESKTOP=XFCE XDG_CURRENT_DESKTOP=XFCE $ cat /etc/sysconfig/desktop DISPLAYMANAGER=sddm
CC: (none) => bittwister2
(In reply to Bit Twister from comment #9) > (In reply to David Walser from comment #8) > > chksession should not print out 'default', but that should be fixed now. > > $ chksession -l > Plasma GNOMEClassic GNOME IceWM XfceSession default failsafe That's not what I meant; that's not new behavior. chksession -F should not print default anymore. > > BTW, chksession's lack of an ordering mechanism so that it prints out the > > correct desktop when none is listed in /etc/sysconfig/desktop, is a > > different issue than this bug. > > Speaking of ordering: > > $ chksession -L > Plasma=01 GNOMEClassic= GNOME= IceWM= XfceSession= Yep, it no longer has anything to give it that ordering information. > $ env | grep _DESKTOP | grep XDG > XDG_SESSION_DESKTOP=XFCE > XDG_CURRENT_DESKTOP=XFCE > > $ cat /etc/sysconfig/desktop > DISPLAYMANAGER=sddm Yes, currently you should have DESKTOP set for it to work correctly. I also just remembered that regular users have ~/.dmrc files; those aren't going to be read correctly anymore either.
CC: (none) => thierry.vignaudAssignee: thierry.vignaud => mageiatools
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=19440
Given: (In reply to Thierry Vignaud from comment #6) > The question is should chksession -l still print out "default"? (In reply to Bit Twister from comment #9) > $ chksession -l > Plasma GNOMEClassic GNOME IceWM XfceSession default failsafe (In reply to David Walser from comment #10) > That's not what I meant; that's not new behavior. chksession -F should not > print default anymore. What's the status on this bug report? Does the MCC rely on `chksession -l` when it should rely on `chksession -F`? This bug report lacks a proper debugging of what the issue is that a cauldron user could face now when setting up autologin in MCC.
Whiteboard: (none) => NEEDINFO
CC: (none) => hhielscher
We cannot use -F as it only returns one element so the pull down menu wouldn't have any purpose again. chksession should not return default or failsafe anymore...
Status comment: (none) => needs a fix in chksession
commit 1662a261a3d928e572c7c91bc0d11ce9524a7b01 Author: Thierry Vignaud <thierry.vignaud@...> Date: Mon Jan 16 11:20:38 2017 +0100 do not show "default"/"failsafe" in session list when there's at least one session (mga#19234) --- Commit Link: http://gitweb.mageia.org/software/desktop/common-data/commit/?id=1662a261a3d928e572c7c91bc0d11ce9524a7b01
(In reply to David Walser from comment #8) > chksession should not print out 'default', but that should be fixed now. Yes it still does... Should be fixed in common-data-6.5.tar.xz
(In reply to Thierry Vignaud from comment #14) > (In reply to David Walser from comment #8) > > chksession should not print out 'default', but that should be fixed now. > > Yes it still does... > Should be fixed in common-data-6.5.tar.xz Again, that's not what I meant. Please read Comment 10. I don't think this commit was correct.
As I wrote, I'm referring to your comment #8. I don't care about comment #10 as we don't use the "-F" option that doesn't make any sense for filling a pull down menu
What I was saying is it was wrong for chksession -F to be printing default and we already fixed that. It's *not* wrong for chksession -l to print default, but you just clobbered that.
B/c some people decided to not use wmsessions and thus broke the chksession output and thus its users in drakx. As nobody is stepping to fix chksession, I'm fixing the existing issues the best way I find. I don't know how much chksession users were silently broken that way...
OK, but we'll need to see what impact not having default available has. failsafe probably isn't strictly necessary. We'll need to make sure that whatever session each individual user chooses continues to be automatically selected on subsequent logins.
Blocks: 15527 => (none)
Created attachment 9024 [details] Correctly leave Session empty in sddm.conf if no desktop is selected The problem is in any::adapt_desktop_for_plasma() which always append '.desktop' even if no desktop is selected. If I read the SDDM code correctly, it will use the last session used to connect the user, but only if Session in /etc/sddm.conf is left empty. Of course, ".desktop" should not be there. With the code that Thierry already uploaded, this shouldn't be an issue already, but I think my patch still makes sense to make sure this cannot happen again. I think that this bug can then be closed.
The patch looks good to me.
Keywords: (none) => PATCHWhiteboard: NEEDINFO => (none)
commit dd985ad2d5d8743e33507017b23100a43876d5d0 Author: Frédéric Buclin <LpSolit@...> Date: Mon Mar 6 00:31:55 2017 +0100 Make sure to leave Session empty in sddm.conf if no desktop is selected (mga#19234) --- Commit Link: http://gitweb.mageia.org/software/drakx/commit/?id=dd985ad2d5d8743e33507017b23100a43876d5d0
i just pushed it as it seems OK for me too.
Status: NEW => RESOLVEDResolution: (none) => FIXEDCC: (none) => mageia