Skip to content

Does not remember last session.... #420

@xpusostomos

Description

@xpusostomos

I have my own session configuration to use the exwm window manager...

# cat /usr/share/xsessions/emacs.desktop 
[Desktop Entry]
Name=EmacsWM
Comment=Emacs Window Manager
Exec=emacs-wm
Type=Application

This works fine, and I've been using it under gdm for years. Recently I decided to switch to lightdm. This was fine as long as I stuck with exwm. But when I started xfce, and logged out, then switched back to .exwm, and then logged out again, it reset my default session to xfce, and is stuck on xfce. No matter what I do now, I always have to set my session to emacs manually, it won't remember I was using that last.

I read somewhere that it stores this in .dmrc.... after using xfce it has:

[Desktop]
Session=xfce

After using exwm, it does not reset that file. If I remove it, after using exwm it does not write that file. Only xfce does, and that's why it is stuck as the default session (presumably).

I don't quite understand why a display manager would rely on something in your home directory, since it has to be able to read the file from your home before you've authenticated yourself... but I guess someone knew what they were doing?

My configuration is totally standard as per installed by arch linux. I've done nothing with the config file, and almost everything is commented out as standard.

lightdm --version
lightdm 1.32.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions