You are not logged in.
I'm doing a fresh install of Arch on a new laptop, trying to get LXDE to autostart, like on my old system. When I run startx, then after clicking a few times, I get what looks like two LXDE windows, as well as an lxpanel and an lxterminal. But it won't autostart, nothing happens at login.
cat ~/.xinitrc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
twm &
xclock -geometry 50x50-1+1 &
exec startlxde
>>> cat ~/.config/lxsession/LXDE/autostart
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@lxterminal
>>> pacman -Q | grep lx
lxappearance 0.6.3-4
lxappearance-obconf 0.2.3-3
lxde-common 0.99.2-3
lxde-icon-theme 0.5.1-5
lxdm 0.5.3-7
lxhotkey 0.1.1-2
lxinput 0.3.5-3
lxlauncher 0.2.5-4
lxmenu-data 0.1.5-3
lxmusic 0.4.7-7
lxpanel 0.10.1-1
lxrandr 0.3.2-3
lxsession 1:0.5.5-2
lxtask 0.1.10-2
lxterminal 0.4.0-1
>>> pacman -Q | grep xorg
xorg-fonts-encodings 1.1.0-1
xorg-server 21.1.11-2
xorg-server-common 21.1.11-2
xorg-setxkbmap 1.3.4-1
xorg-twm 1.0.12-1
xorg-xauth 1.1.3-1
xorg-xclock 1.1.1-1
xorg-xinit 1.4.2-1
xorg-xkbcomp 1.4.7-1
xorg-xmodmap 1.0.11-1
xorg-xprop 1.2.7-1
xorg-xrandr 1.5.2-1
xorg-xrdb 1.2.2-1
xorgproto 2023.2-1
>>> pacman -Q | grep openbox
openbox 3.6.1-10
Running startlxde directly doesn't produce anything (though maybe it's not supposed to?)
** Message: 09:55:07.217 main.valal:102: Session is LXDE
** Message: 09:55:07.218 main.valal:103: DE is LXDE
(lxsession:1084): Gtk-WARNING **: 9:55:07.220: cannot open display:
Also, I notice the DISPLAY variable is not set. I don't know where it's supposed to be set.
Last edited by ludog (2024-03-21 09:02:46)
Offline
Comment out these 2 lines
twm &
xclock -geometry 50x50-1+1 &
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
Thanks, I tried this following your suggestion, but it made no difference.
Offline
The autostart file is meant to list programs that are started when lxde is started.
Do you want X / lxde to be autostarted when you login ?
That's configured differently and not though ~/.config .
see https://wiki.archlinux.org/title/Xinit# … X_at_login
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
Ah yes, I think I was confused between the applications that LXDE starts, and starting LXDE itself. Adding startx to .bash_profile worked. Thanks.
Offline