Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: LightDM - Pruning / purging multiple unecessary WM options

  1. #11
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: LightDM - Pruning / purging multiple unecessary WM options

    Quote Originally Posted by Holger_Gehrke View Post
    Without reading the source to lightdm (and / or the greeter in use - probably lightdm-gtk-greeter) very closely, I can only assume that lightdm reads some additional desktop files beyond those in /usr/share/xsessions/. I'd try something like
    Code:
    find / -path /usr/share/applications -prune -o -path /usr/share/xsessions -prune -o -path $HOME/.local/share/applications -prune -o -iname '*.desktop'
    This should find any .desktop files outside the three locations given (we know there are desktop files there and they are not the ones we are after). That will still give a lot of false hits, but if there are desktop files which are responsible for the sessions you see, they should be among the results. Might want to either pipe this into less or sent error output to /dev/null for the sake of readability ...

    Holger
    +1 that would make sense to me.
    Now for a fresh look
    This is a very very Beta Arch Distro, Holgre might have the look needed with (- probably lightdm-gtk-greeter) But mine again just to test against gnome sessions as well):
    Code:
    cd /usr/share/xsessions && ls
    gnome.desktop  gnome-xorg.desktop  onyx.desktop  xfce.desktop
    I'm just going with what has already been suggested:

    I'm keeping the "onyx.desktop" that's the desktop I'm currently testing now.
    One item at a time:
    Code:
    sudo mv /usr/share/xsessions/gnome.desktop gnome.desktop.bk
    ###
    sudo mv /usr/share/xsessions/gnome-xorg.desktop gnome-xorg.desktop.bk
    Now I always look:
    Code:
    cd    /usr/share/xsessions && ls
    gnome.desktop.bk  gnome-xorg.desktop.bk  onyx.desktop  xfce.desktop
    Just for fun I'll move those two elswhere:
    Code:
    sudo mv gnome.desktop.bk /home/me/Documents
    ###
    sudo mv gnome-xorg.desktop.bk /home/me/Documents
    Another look:
    Code:
    ls
    onyx.desktop  xfce.desktop
    Even before the move to Documents I had only the two sessions showing.
    I never use " lightdm-gtk-greeter" i remember 8 years back this was a buggy choice so I've not used it since.
    Last edited by 1fallen; September 4th, 2023 at 10:17 PM. Reason: removed a bad line
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  2. #12
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: LightDM - Pruning / purging multiple unecessary WM options

    Quote Originally Posted by Drone4four View Post
    Ok it is time for me to come clean. I am not actually running Ubuntu. I am not even running another Linux distro with advanced package tool. I'm running Manjaro.
    @Drone4four, you originally posted in the General Help sub-forum, whose strapline clearly states, "All your general support questions for Ubuntu, Kubuntu, Edubuntu, Xubuntu, Lubuntu, Ubuntu Mate, Ubuntu Budgie, Ubuntu Studio and Ubuntu Kylin.". Unsurprisingly, Manjaro is not amongst them.

    Thread moved to Arch and derivatives sub-forum.

    Although we provide specific sub-forums for non-Ubuntu distros, this is merely a convenience for members - as 1fallen says, you may be better off seeking help in the Manjaro forum.
    Ubuntu 22.04 Desktop Guide - Ubuntu 24.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  3. #13
    Join Date
    May 2007
    Location
    West Indies
    Beans
    497
    Distro
    Ubuntu

    Re: LightDM - Pruning / purging multiple unecessary WM options

    Quote Originally Posted by Holger_Gehrke View Post
    I'd try something like
    Code:
    find / -path /usr/share/applications -prune -o -path /usr/share/xsessions -prune -o -path $HOME/.local/share/applications -prune -o -iname '*.desktop'
    This should find any .desktop files outside the three locations given (we know there are desktop files there and they are not the ones we are after). That will still give a lot of false hits, but if there are desktop files which are responsible for the sessions you see, they should be among the results. Might want to either pipe this into less or sent error output to /dev/null for the sake of readability
    This was a stroke of genius, @Holger_Gehrke. Thank you.

    Since I wasn't sure how to pipe or highlight the right files, I exported your command into a .txt file in my home directory. I used this:

    Code:
    sudo find / -path /usr/share/applications -prune -o -path /usr/share/xsessions -prune -o -path $HOME/.local/share/applications -prune -o -iname '*.desktop' > xsession-search-2023sep10.txt
    Next I opened `xsession-search-2023sep10.txt` in gedit. The file was some 740 lines long. Then did a Ctrl + F for: `classic.desktop` which referred to this location:

    /usr/share/wayland-sessions/gnome.desktop
    /usr/share/wayland-sessions/gnome-classic.desktop
    /usr/share/wayland-sessions/gnome-classic-wayland.desktop
    /usr/share/wayland-sessions/gnome-wayland.desktop
    It appears wayland-sessions serves the same purpose as xsessions. So I proceeded to backup files: gnome.desktop, gnome-classic.desktop, gnome-classic-wayland.desktop. And Eureka! It works! See here: https://i.imgur.com/WLIhgCA.jpg

    Mission Accomplished. Thank you Holger.
    My rig:
    IBM Personal System/2 Model 30-286 - - Intel 80286 (16 bit) 10 Mhz - - 1MB DRAM - - Integrated VGA Display adapter
    1.44MB capacity Floppy Disk - - PS/2 keyboard (no mouse)

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •