You are not logged in.

#1 2013-10-06 08:30:30

patrickmaciel
Member
From: Brazil-Uberlândia-MG
Registered: 2013-09-28
Posts: 36
Website

Lightdm and Openbox - New installation

Hi guys.
I install Archlinux in my desktop yesterday (11:00PM), and until now (05:00AM) I can not configure Lightdm with Openbox.

When Lightdm start (so ugly), I select my user and type my password.
After that, screen flash 1 time (black), and back to login.

Why?

I create this files:

.xinitrc

exec openbox-session

.bash_profile

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

.xsession

# copy of openbox-autostart

---

I don't know whats wrong

Offline

#2 2013-10-06 09:02:24

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Lightdm and Openbox - New installation

Unless you modified lightdm's Xsession wrapper, .xinitrc will not be used. That line in .bash_profile is meant to autostart X when you log in on tty1. Only .xsession is executed when you log in through lightdm, but why make it a copy of openbox-autostart? Lightdm would start openbox after running .xsession; then this would be executed twice.

The openbox package includes

/usr/share/xsessions/openbox.desktop

and lightdm reads available sessions from that directory. The login screen allows you to select one; that's how lightdm picks the session, not through .xinitrc. But this stuff should all be in the wiki or other documentation. I get the feeling you threw a few of the relevant wiki pages in a blender and scooped up some dotfiles.

Try starting with a basic setup: no .xsession etc., just pick the openbox session from the list when you login through lightdm and see if that works, then add the rest (but openbox's autostart might be all you need). If it doesn't work, look at the logs in /var/log/lightdm.

Offline

#3 2013-10-06 14:52:09

patrickmaciel
Member
From: Brazil-Uberlândia-MG
Registered: 2013-09-28
Posts: 36
Website

Re: Lightdm and Openbox - New installation

Raynman wrote:

Unless you modified lightdm's Xsession wrapper, .xinitrc will not be used. That line in .bash_profile is meant to autostart X when you log in on tty1. Only .xsession is executed when you log in through lightdm, but why make it a copy of openbox-autostart? Lightdm would start openbox after running .xsession; then this would be executed twice.

The openbox package includes

/usr/share/xsessions/openbox.desktop

and lightdm reads available sessions from that directory. The login screen allows you to select one; that's how lightdm picks the session, not through .xinitrc. But this stuff should all be in the wiki or other documentation. I get the feeling you threw a few of the relevant wiki pages in a blender and scooped up some dotfiles.

Try starting with a basic setup: no .xsession etc., just pick the openbox session from the list when you login through lightdm and see if that works, then add the rest (but openbox's autostart might be all you need). If it doesn't work, look at the logs in /var/log/lightdm.

Yes, if I execute startx in tty logged with my user (not root), openbox open successfully.

But, when I try using Lightdm, screen just flash.

Note: when I execute exec openbox-session in my user, screen back to tty, maybe this the problem

Offline

Board footer

Powered by FluxBB