1

I am on Debian Testing

How do I enable auto-login to i3 instead of GNOME


Update

I followed the answer provide by jasonwryan, but it did not solve the problem

I did

$ update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/bin/i3 60

Then I did

$ update-alternatives --config x-session-manager

There are 2 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager).

  Selection    Path                    Priority   Status
------------------------------------------------------------
* 0            /usr/bin/i3              60        auto mode
  1            /usr/bin/gnome-session   50        manual mode
  2            /usr/bin/i3              60        manual mode

Press <enter> to keep the current choice[*], or type selection number: 0

As you see when it asked me to <enter> my choice, I chose 0

Then I did a reboot, but it still logged me in GNOME instead of i3.

  • @jasonwryan updated my question – GypsyCosmonaut Aug 20 '17 at 22:15
  • Is the $ in the prompt an addition of yours? You are supposed to be root to use update-alternatives. No error message? Moreover, what about an update-alternatives --config x-window-manager? – xhienne Aug 21 '17 at 22:41
  • @xhienne yes, $ is to signify that the following command was typed in bash prompt. I am root. Will inform back after trying x-window-manager command – GypsyCosmonaut Aug 21 '17 at 22:53
  • 1
    @xhienne I followed steps that I mentioned in the question and at last did update-alternatives --config x-window-manager and then did a reboot this time, it booted in GNOME again this time also. Am I doing anything wrong ? Does this work for you ? – GypsyCosmonaut Aug 21 '17 at 23:41
  • I don't use i3. But what you did should work. Does ls -l /etc/alternatives/x-* display your choice as links? Did you try the other answers from the alleged duplicate question? – xhienne Aug 22 '17 at 0:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.