Bug 31133

Summary: drakautologin doesn't list LXQt session
Product: Mageia Reporter: papoteur <yvesbrungard>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: MCC auto-login screen showing absence of [installed] LxQt in desktop list

Description papoteur 2022-11-16 13:51:14 CET
Description of problem:
When trying to configure autologin from MCC, the list of sessions doesn't include LXQT one

The list is obtained from the command:
/usr/sbin/chksession -l

This command returns in my Mageia 8:
LXQtDesktop Plasma IceWMSession IceWM Openbox
but 
 Plasma(X11) IceWMSession IceWM Openbox
in cauldron.

The command is said to look in /usr/share/xsessions. In both cases, there is a lxqt.desktop file. The main difference I see between them is that the cauldron ones includes:

DesktopNames=LXQt
Comment 1 Lewis Smith 2022-11-17 10:01:45 CET
Created attachment 13512 [details]
MCC auto-login screen showing absence of [installed] LxQt in desktop list

Thank you for the report, which, having LxQt, I confirm. chksession does not show LxQt:
 $ sudo /usr/sbin/chksession -l
 Plasma(X11) Cinnamon Cinnamon(SoftwareRendering) GNOMEClassiconXorg GNOMEClassic GNOMEonXorg GNOME IceWMSession IceWM LXDE MATE Openbox XfceSession

and the attached screenshot from the MCC auto-login screen reflects this (Plasma rolled off top).

 $ ls /usr/share/xsessions
01plasma.desktop            gnome.desktop          lxqt.desktop   ***
cinnamon2d.desktop          gnome-xorg.desktop     mate.desktop
cinnamon.desktop            icewm.desktop          openbox.desktop
gnome-classic.desktop       icewm-session.desktop  xfce.desktop
gnome-classic-xorg.desktop  LXDE.desktop

 $ head /usr/share/xsessions/lxqt.desktop 
[Desktop Entry]
Type=Application
Exec=startlxqt
TryExec=lxqt-session
DesktopNames=LXQt

Name=LXQt Desktop
Comment=Lightweight Qt Desktop

I wonder whether the blank line matters. Looking at many of the other desktop files, none had a blank line.
Comment 2 Lewis Smith 2022-11-17 10:06:22 CET
[Plasma was not rolled off!]
Assigning to the tools maintainers.

Assignee: bugsquad => mageiatools

Comment 3 papoteur 2022-11-17 14:43:20 CET
(In reply to Lewis Smith from comment #1)
>  $ head /usr/share/xsessions/lxqt.desktop 
> [Desktop Entry]
> Type=Application
> Exec=startlxqt
> TryExec=lxqt-session
> DesktopNames=LXQt
> 
> Name=LXQt Desktop
> Comment=Lightweight Qt Desktop
> 
> I wonder whether the blank line matters. Looking at many of the other
> desktop files, none had a blank line.

Yes Lewis, good assumption.
I will push a fix for that.
Papoteur
Comment 4 papoteur 2022-11-18 09:53:43 CET
Hello,
It should be fixed with lxqt-session-1.2.0-2.mga9
Lewis, can you confirm and close the report in this case?
Comment 5 papoteur 2022-11-23 18:13:41 CET
I consider it as solved. Reopen if not.

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