SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-05-30 01:56:47

Poohblah
Member
Registered: 2013-05-29
Posts: 13

not booting into default session listed in /etc/slim.conf

Hi guys, I'm a new #! user. After getting used to #!, I installed the i3 window manager through the debian repos, verified that i3 worked, and finally edited my /etc/slim.conf file and changed the following line:

sessions openbox

to:

sessions i3

However, when I reach the graphical login, I still start an openbox session by default, i.e. if I just enter my username and password without doing anything else. But if I press f1, "Session: i3" appears on the screen and then I can log in to an i3 session. Does anybody know what's going on and how to fix it so that I don't have to press f1 to start an i3 session?

Last edited by Poohblah (2013-05-30 01:59:44)

Offline

Be excellent to each other!

#2 2013-05-30 19:09:01

ohnonot
...again
Registered: 2012-05-22
Posts: 1,748
Website

Re: not booting into default session listed in /etc/slim.conf

i remember this problem and there was a solution, but all i can remember now is a workaround with a hammer:
change this line

login_cmd           exec /bin/bash -login /etc/X11/Xsession %session

to

login_cmd           exec /bin/bash -login /etc/X11/Xsession i3

iirc, the default session is defined elsewhere.
it would seem that slim.conf is ahead of the actual implementation of slim.
if you change it all back to openbox-session you will still have a choice when pressing F1 although according to the logic of the conf file you should not.

Last edited by ohnonot (2013-05-30 19:10:17)

Offline

#3 2013-05-31 06:30:56

Poohblah
Member
Registered: 2013-05-29
Posts: 13

Re: not booting into default session listed in /etc/slim.conf

Thank you for your help ohnonot. Although I have not figured out how to solve this problem, there are some hints at a possible solution on the SLiM ArchWiki. It seems that the session variable is not set until f1 is pressed, and SLiM defaults the value of the session variable to openbox, or something along those lines. I have chosen not to pursue this problem further at the moment because I have decided to keep both i3 and Openbox as options during login. When I get the impetus to stick to one window manager, I am sure I will return to this issue.

Last edited by Poohblah (2013-05-31 06:32:58)

Offline

#4 2013-11-14 22:34:36

CFWhitman
New Member
Registered: 2012-09-26
Posts: 3

Re: not booting into default session listed in /etc/slim.conf

In Debian (and I'm guessing Crunchbang, since it basically is Debian with a few tweaks), SLiM will respect the session set as default by, in Crunchbang:

sudo update-alternatives --config x-session-manager

So run that and I believe you will be able to pick your desired session as default.
(I've always just run Openbox in Crunchbang, so I never had occasion to try this, but it works in Debian.)

Last edited by CFWhitman (2013-11-14 22:36:05)

Offline

#5 2013-11-14 22:55:21

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2012-03-22
Posts: 956
Website

Re: not booting into default session listed in /etc/slim.conf

^What CFWhitman said, and also check that i3 is selected in:

$ sudo update-alternatives --config x-window-manager

Postpone all your duties; if you die, you won't have to do them ..

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo