LightDM - Pruning / purging multiple unecessary WM options (continued)

I started a thread last week here:

It closed automatically after 2 days. I wasn’t finished. I am back with more to discuss.

I attempted to remove gdm. I don’t think it was installed to begin with. Although I could be mistaken because if I understand correctly, I can’t find gdm in the repo since pacman and yay don’t autocomplete to a specific stand alone gdm package. All I see is libgdm:

$ sudo pacman -R libgdm 
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing libgdm breaks dependency 'libgdm' required by gnome-shell-maia

Not sure if removing that is what is necessary or if that is what @linux-aarhus was referring to in his reply in my other thread.

This was what I was working with originally:

There are .desktop files for sessions in /usr/share/xsessions/. Rather than deleting and removing some of them, I just created a backup directory and moved all the ones I didn’t like into them like so:

$ cd bax2k23Aug21 
$ pwd
/usr/share/xsessions/bax2k23Aug21
$ ls -la
total 44
drwxr-xr-x 2 root root 4096 Aug 21 04:51 .
drwxr-xr-x 3 root root 4096 Aug 29 16:46 ..
-rw-r--r-- 1 root root  984 Aug 10 18:08 e16-gnome2-session.desktop
-rw-r--r-- 1 root root  211 Aug 10 18:08 e16-gnome3-session.desktop
-rw-r--r-- 1 root root  969 Aug 10 18:08 e16-kde-session.desktop
-rw-r--r-- 1 root root 8139 Apr 28 20:21 gnome-classic.desktop
-rw-r--r-- 1 root root 7617 Apr 28 20:21 gnome-classic-xorg.desktop
-rw-r--r-- 1 root root 7830 Apr  9 19:56 gnome.desktop

Therefore, here is what the contents of the parent /usr/share/xsessions directory looks like now:

$ pwd
/usr/share/xsessions
$ ls -la
total 28
drwxr-xr-x   3 root root  4096 Aug 29 16:46 .
drwxr-xr-x 362 root root 12288 Aug 29 16:46 ..
drwxr-xr-x   2 root root  4096 Aug 21 04:51 bax2k23Aug21
-rw-r--r--   1 root root  7915 Apr  9 19:56 gnome-xorg.desktop

The impact now is that some of the options I am trying to get rid of are gone. See here:

So that’s progress I guess. But there are some that are still not necessary.

ldm now presents:

How do I prune these further so that I only see:

How do I get rid of all those “Classic” options as well as the non-descript “GNOME”?

Where else on a Linux system with ldm as the greeter might configurations be stored for me to change to achieve the desired end result?

packages.manjaro.org identifies the gdm package here:

And it recommends to remove it using this command:

$ pamac remove gdm
Error: target not found: gdm

As you can see with the output, gdm is not installed on my system. That confirms that I have done what @linux-aarhus recommended in my original thread.

The GNOME session lockscreen shortcuts are provided by gnome-session, not gdm.

1 Like

Thank you @Yochanan for your lead.

At / I ran: $ which gnome-session which identified a configuration file located here: /usr/sbin/gnome-session. The file contains the following 32 lines of bash scripting:

#!/bin/sh

if [ "x$XDG_SESSION_TYPE" = "xwayland" ] &&
   [ "x$XDG_SESSION_CLASS" != "xgreeter" ] &&
   [  -n "$SHELL" ] &&
   grep -q "$SHELL" /etc/shells &&
   ! (echo "$SHELL" | grep -q "false") &&
   ! (echo "$SHELL" | grep -q "nologin"); then
  if [ "$1" != '-l' ]; then
    exec bash -c "exec -l '$SHELL' -c '$0 -l $*'"
  else
    shift
  fi
fi

SETTING=$(G_MESSAGES_DEBUG='' gsettings get org.gnome.system.locale region)
REGION=${SETTING#\'}
REGION=${REGION%\'}

if [ -n "$REGION" ]; then
  unset LC_TIME LC_NUMERIC LC_MONETARY LC_MEASUREMENT LC_PAPER

  if [ "$LANG" != "$REGION" ] ; then
    export LC_TIME=$REGION
    export LC_NUMERIC=$REGION
    export LC_MONETARY=$REGION
    export LC_MEASUREMENT=$REGION
    export LC_PAPER=$REGION
  fi
fi

exec /usr/lib/gnome-session-binary "$@"

I am not sure which values or changes I might need to make in order to remove the wm options showing in ldm.

I went searching for more information about gnome-session and found the official GNOME gitlab repo:

The README is sparse but refers to other locations where the GNOME team offers support such as the desktop development mailing list archives which, in turn, explains that the mailing list was replaced last November with https://discourse.gnome.org/

So I guess I can ask there.

For what it is worth, in Gnome’s dconf-editor has an entry for: org.gnome.gnome-session which contains four settings but none allow me to add/remove wm options for gdm/ldm: