[SOLVED] Lightdm - cannot figure out how to change default xsession - Debian Wheezy
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Lightdm - cannot figure out how to change default xsession - Debian Wheezy
Hi
I have installed Lightdm as my login manager for debian wheezy. I have three Desktop Environments/Window Managers installed: LXDE, XFCE4 and awesome. As soon as my machine boots, I am presented with the login screen, where I enter my username/password. There is also a drop down box where I can choose which DE/WM to use.
The problem is that the drop down box always defaults to "Default Xsession", which appears to be LXDE. I use XFCE4 most, and therefore I wish to set "Default XSession" to be XFCE4 so that I don't have to change the option with the drop down menu to manually log into XFCE4.
I have tried editing /etc/lightdm/lightdm.conf and changing user-session under [SeatDefaults] to a number of things, such as startxfce4, xfce4-session, xfce-session, xfce4, etc... None of those worked.
How do I change the Default Xsession so that it logs into XFCE4 by default, not LXDE?
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
What DE were you sing when you installed it? I think if you installed it when you were in LXDE that would become the default. If this is the case completely remove it and then reinstall it when you are in XFCE.
I logged into XFCE and ran those two commands. After the second command, I chose lightdm instead of xdm to be my login manager. However, upon a reboot, "Default XSession" always logged me in with LXDE.
I now only have XDM installed, and logging in through that also logs me in with LXDE.
According to the site (a user on the linux mint forums) the above command "will set cinnamon to default in lightdm".
Do you think if I changed the last argument from cinnamon to something xfce related it may work?
If so, what should the final argument be? xfce4-session, xfce4, xfce, startxfce4, or what else?
Sorry for my third post in a row, but I found a solution (probably more of a workaround, but hey, that still counts as a solution!)
I went into /usr/share/xsessions and found a file called lightdm-xsession.desktop. I then edited lightdm-xsession.desktop, and found a command "exec".
Simply changing this "exec" from "default" to "startxfce4" meant that when I have "Default XSession" selected at the login screen, it starts xfce4 instead of "default".
I went into /usr/share/xsessions and found a file called lightdm-xsession.desktop. I then edited lightdm-xsession.desktop, and found a command "exec".
Simply changing this "exec" from "default" to "startxfce4"
I found another solution.
The Debian manual page [1] says each user can select a different default windows manager using the "exec ..." command in own home folder (in "~/.xsession" file).
And it works form me in Debian Wheezy.
I had a virtually identical challenge with wheezy stable, I switched from LXDE to a plain openbox WM and had to select it manually for each login. To change the default you need to change the symlink at /etc/alternatives/x-session-manager to point at the appropriate session starter (so I needed to point it at /usr/bin/openbox-session).
The easiest way to accomplish this (the way I actually did it) is to use update-alternatives:
# update-alternatives --config x-session-manager
you will get a list of options, select xcfe and you will be set.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.