GDM session menu (display managers)

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

GDM session menu (display managers)

Postby rooman » Dec 5th, '17, 23:19

it is possible to click on the cogwheel next to the Sign in button in the GDM login screen to choose other display managers installed, IceWm, Plasma etc.
How can I designate a default choice or modify the menu order?
I have done a web search for three days and no solutions apply as suggested files or folders do not exist.

Bog standard stock Mageia 6 + Gnome 3.24.2
Mageia 6, Asus Z-87-Pro, i5 4670k @4.2, DDR3 16gb, nVidia 760 GTX
rooman
 
Posts: 52
Joined: Apr 20th, '11, 16:43
Location: Lausanne, Switzerland

Re: GDM session menu (display managers)

Postby doktor5000 » Dec 6th, '17, 03:34

The default is the one that was selected last time, this is the same for other login managers.

And the order is determined by the .desktop files which define those sessions, they are contained in /usr/share/xsessions.
I believe the default is they are sorted alphabetically, and I believe you can't change that via some GDM setting if this is what you're asking for.
You would have to change the name properties in the .desktop files.

See also https://help.gnome.org/admin/gdm/stable ... sionconfig
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: GDM session menu (display managers)

Postby rooman » Dec 6th, '17, 20:09

Thanks, I've already been to that page and many others, <share>/xsessions is empty and the other folders do not exist!

In the the ~/.dmrc file is

[Desktop]
Session=GNOME

but Plasma is always first in the list and the default!
Mageia 6, Asus Z-87-Pro, i5 4670k @4.2, DDR3 16gb, nVidia 760 GTX
rooman
 
Posts: 52
Joined: Apr 20th, '11, 16:43
Location: Lausanne, Switzerland

Re: GDM session menu (display managers)

Postby rooman » Dec 6th, '17, 21:33

according to https://help.gnome.org/admin/system-admin-guide/3.24/session-user.html.en
/var/lib/AccountsService/users/ there is a username file containing the default desktop choice, for me there is one named MyUserName but it seems to have no effect or be overridden.

Prefixing the files in /usr/share/xsessions like in https://askubuntu.com/a/871568 seems to order the choices like in old .bat boot files
Mageia 6, Asus Z-87-Pro, i5 4670k @4.2, DDR3 16gb, nVidia 760 GTX
rooman
 
Posts: 52
Joined: Apr 20th, '11, 16:43
Location: Lausanne, Switzerland

Re: GDM session menu (display managers)

Postby doktor5000 » Dec 7th, '17, 15:33

rooman wrote:but Plasma is always first in the list and the default!

Maybe you should have added that to your initial problem description, if that is the actual issue you're having :roll:

So you say if you select another session which is not plasma and login successfully, then logout again, once you're at GDM again if you only provide your username and password it will login to Plasma?

Please show the output as root of
Code: Select all
ls -al /usr/share/xsessions
cat /etc/sysconfig/desktop
systemctl status prefdm -al -n150
systemctl status gdm -al -n150
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

[Solved] GDM session menu (display managers)

Postby rooman » Dec 10th, '17, 14:37

Code: Select all
ls -al /usr/share/xsessions
total 20
drwxr-xr-x 1 root root  186 déc  6 20:50 ./
drwxr-xr-x 1 root root 5904 déc  4 21:54 ../
-rw-r--r-- 1 root root  237 déc  6 20:40 1-GNOME.desktop
-rw-r--r-- 1 root root  183 déc  6 20:41 2-IceWM.desktop
-rw-r--r-- 1 root root  266 déc  6 20:50 '3-IceWM Session.desktop'
-rw-r--r-- 1 root root  241 déc  6 20:50 4-Plasma.desktop
-rw-r--r-- 1 root root  263 déc  6 20:50 '5-GNOME sur Xorg.desktop'


Code: Select all
cat /etc/sysconfig/desktop
DISPLAYMANAGER=GNOME


Code: Select all
[root@linux quenet]# systemctl status prefdm -al -n150
● prefdm.service - Display Manager
   Loaded: loaded (/usr/lib/systemd/system/prefdm.service; static; vendor preset
   Active: active (running) since dim 2017-12-10 13:04:43 CET; 23min ago
 Main PID: 1890 (gdm)
   CGroup: /system.slice/prefdm.service
           └─1890 /usr/sbin/gdm -nodaemon

déc 10 13:04:43 linux.local systemd[1]: Started Display Manager.
déc 10 13:04:54 linux.local gdm[1890]: Child process -2038 was already dead.
déc 10 13:04:54 linux.local gdm[1890]: Child process 1983 was already dead.
déc 10 13:04:54 linux.local gdm[1890]: Unable to kill session worker process
déc 10 13:04:54 linux.local gdm[1890]: GdmDisplay: display lasted 0.315346 secon
déc 10 13:04:54 linux.local gdm[1890]: Child process -3910 was already dead.
déc 10 13:04:54 linux.local gdm[1890]: Child process 3859 was already dead.
déc 10 13:04:54 linux.local gdm[1890]: Unable to kill session worker process
déc 10 13:15:54 linux.local gdm-password][10382]: pam_succeed_if(gdm-password:au
 
this block repeats 16 x adding a letter to the rest of the last line is shown**** th): requirement "user ingroup nopasswdlogin" not met by user "quenet"


Code: Select all
[root@linux quenet]# systemctl status gdm -al -n150
● gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib/systemd/system/gdm.service; disabled; vendor preset: enabled)
   Active: inactive (dead)


Yup, plasma was always proposed first but prefixing the files works for me; I've put 1-Gnome, 2-Gnome Xorg, etc and as the first is always proposed by default it proposes 1-Gnome and that was my goal. My wife just enters the pwd and hits ENTER, I choose Plasma when I need it, everyone is happy.

Youv'e probably put your finger on a bug in my system, I have a working solution but is the bug serious and needing attention?
Last edited by doktor5000 on Dec 10th, '17, 15:23, edited 1 time in total.
Reason: added code tags
Mageia 6, Asus Z-87-Pro, i5 4670k @4.2, DDR3 16gb, nVidia 760 GTX
rooman
 
Posts: 52
Joined: Apr 20th, '11, 16:43
Location: Lausanne, Switzerland

Re: [Solved] GDM session menu (display managers)

Postby doktor5000 » Dec 10th, '17, 15:29

rooman wrote:Youv'e probably put your finger on a bug in my system, I have a working solution but is the bug serious and needing attention?

Well from your description alone I'm not sure whether this is a bug or whether someone just chose plasma session before you rebooted.
You have to decide whether it's serious or if it needs attention.

Although that you can't configure a default session for different users as described in https://help.gnome.org/admin/system-adm ... er.html.en seems like an issue to me.
Can you show the file that you added as an example ?

edit doktor5000: seems like that the file is being overwritten at logout, see e.g. https://brokkr.net/2016/10/27/setting-d ... lt-latest/
But according to this it should work in general: https://access.redhat.com/documentation ... lt-session
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron