LXDE not starting window manager in Fedora 40

Please post all general support questions for LXDE here.
Post Reply
wsanders
Posts: 1
Joined: Thu Aug 29, 2024 1:52 am

LXDE not starting window manager in Fedora 40

Post by wsanders »

I am trying to get LXDE working in Fedora 40 with Tiger VNC Server. I installed the LXDE Desktop DNF group. I put the "lxsession" command in VNC's ~/.vnc/xstartup script and LXDE ran once, with the panel and everything. After rebooting the host, it won't run properly anymore. There is no window manager running, and although I can start an xterm it doesn't accept keyboard input. Also, an lxpanel process is running but nothing is visible.

What window manager should be running? The processes I see now are:
├─sh───lxsession─┬─lxclipboard───3*[{lxclipboard}]
│ ├─lxpanel───3*[{lxpanel}]
│ ├─lxpolkit───3*[{lxpolkit}]
│ ├─notification-da───4*[{notification-da}]
│ ├─pcmanfm─┬─lxterminal─┬─bash
│ │ │ └─4*[{lxterminal}]
│ │ └─7*[{pcmanfm}]
│ └─3*[{lxsession}]
I can do this in my xstartup:
DISPLAY=:1 openbox &
DISPLAY=:1 xterm &
DISPLAY=:1 lxpanel &

What's preventing openbox from starting? Is there a more appropriate command or system service for starting LXDE?
MichelleGrant
Posts: 1
Joined: Thu Feb 06, 2025 1:03 pm

Re: LXDE not starting window manager in Fedora 40

Post by MichelleGrant »

It seems that Openbox, the default window manager of LXDE, doesn't start properly when you run TigerVNC on Fedora 40.
Instead of just setting lxsession, edit the ~/.vnc/xstartup file and make sure you start Openbox in the correct order:

Code: Select all

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export DISPLAY=:1

# Start Openbox first
openbox-session &

# Start LXDE components
lxpanel &
pcmanfm --desktop &
lxterminal &
pinkahda
Posts: 1
Joined: Fri Sep 06, 2024 8:17 am

Re: LXDE not starting window manager in Fedora 40

Post by pinkahda »

wsanders wrote: Thu Aug 29, 2024 2:00 am I am trying to get LXDE working in Fedora 40 with Tiger VNC Server. I installed the LXDE Desktop DNF group. I put the "lxsession" command in VNC's ~/.vnc/xstartup script and LXDE ran once, with the panel and everything. After rebooting the host, it won't run properly anymore. There is no window manager running, and although I can start an xterm it doesn't accept keyboard input. Also, an lxpanel process is running but nothing is visible.

What window manager should be running? The processes I see now are:
├─sh───lxsession─┬─lxclipboard───3*[{lxclipboard}]
│ ├─lxpanel───3*[{lxpanel}]
│ ├─lxpolkit───3*[{lxpolkit}]
│ ├─notification-da───4*[{notification Geometry Dash -da}]
│ ├─pcmanfm─┬─lxterminal─┬─bash
│ │ │ └─4*[{lxterminal}]
│ │ └─7*[{pcmanfm}]
│ └─3*[{lxsession}]
I can do this in my xstartup:
DISPLAY=:1 openbox &
DISPLAY=:1 xterm &
DISPLAY=:1 lxpanel &

What's preventing openbox from starting? Is there a more appropriate command or system service for starting LXDE?
"It sounds like the LXDE session is not properly initializing after a reboot. Since it worked once, the issue might be related to session management or missing dependencies. A few things to check: (1) Ensure lxsession is still in ~/.vnc/xstartup and that the script has executable permissions (chmod +x ~/.vnc/xstartup). (2) Try adding export DISPLAY=:1 before running lxsession. (3) Check ~/.vnc/*.log for errors indicating missing components. (4) Verify if openbox is running—LXDE needs a window manager, and it might not be starting automatically. Try running openbox --replace & manually.
felixandreaim
Posts: 2
Joined: Tue Jun 04, 2024 10:19 am

Re: LXDE not starting window manager in Fedora 40

Post by felixandreaim »

Hello,

It seems like your issue is related to Openbox not starting correctly in the LXDE session. You can try the following steps:

1. Check xstartup: Make sure that your

Code: Select all

~/.vnc/xstartup
file has executable permissions. You can run the following command:

Code: Select all

chmod +x ~/.vnc/xstartup
2. Add Openbox to xstartup: Modify the content of ~/.vnc/xstartup like this:color block jam level

Code: Select all

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
lxsession &
openbox &
3. Restart VNC: After making the changes, restart the VNC server and check if LXDE works properly.

4. Check logs: Look at the logs in

Code: Select all

~/.vnc/*.log
to see if there are any error messages related to Openbox or LXDE.

I hope these suggestions help you resolve the issue! If you continue to have difficulties, please share more details so that others can assist you better.
Post Reply