Describe the bug
LeftWM doesn't start. Gives "Null pointer in display" error back.
Output with RUST_BACKTRACE=full
Jul 19 23:47:25.635 INFO leftwm-worker booted!
thread 'main' panicked at 'Null pointer in display', src/display_servers/xlib_display_server/xwrap.rs:90:9
Stack backtrace is all <unknown> except 17: which is __libc_start_main
Jul 19 23:47:25.752 ERRO Completed with error: Any {...}
Environment:
leftwm-check:
:: LeftWM version: 0.2.8
:: LeftWM git hash: 3c80a4a
:: Loading configuration . . .
-> Configuration loaded OK
WARN: The file loaded was the default. Your configuration is likely invalid
:: Checking keybinds . . .
-> All keybinds OK
:: Checking environment . . .
-> Environment OK
Additional context
Installed with yay -S leftwm
How are you trying to start leftwm? Are you using startx or invoking leftwm itself?
How are you trying to start leftwm? Are you using startx or invoking leftwm itself?
I tried the "normal" way, with the DM (I'm using SDDM) but it freezed. Then I tried leftwm in tty and got the error.
Running just leftwm, you鈥檒l get this error unless you have a graphical display manager (X11-server) running. The best way is to exec dbus-launch leftwm from within .xinitrc in that case and use startx from tty to start leftwm and the display manager for tty output.
As for why SDDM isn鈥檛 working, that鈥檚 quite curious. Did SDDM freeze or did you get into leftwm and then get the freeze? If so ctrl+alt+f# into a different TTY and see if journalctl -xe gives any hints (it will give more if you recompile leftwm with - -features journald(No spaces between dashes)). There also might be something in the display manager logs files but I can鈥檛 recall where those are atm.
Thank you for the response!
I tried the thing with .xinitrc and startx but I got a black screen with just the mouse pointer. So I tried to run exec dbus-launch leftwm directly, and got the same error as before.
About SDDM, I just select LeftWM as session type, enter the password, and than it "freezes": I can move the cursor around, but I cannot interact with any item.
I attached journalctl -xe output right after this thing happens in SDDM.
Thanks.
journalctl.txt
When you get the black screen and pointer, that鈥檚 likely stock leftwm without theme. If you try modkey shift return it should open a terminal if everything worked properly.
I鈥檓 on mobile atm so can鈥檛 open the journal correctly, will take a look in a bit.
Oh you are right! It opened a terminal! Thank you!
Ah so I think I see the issue maybe?
Jul 20 16:05:40 rx78 sddm[284]: Session "/usr/share/xsessions/leftwm.desktop" selected, command: "leftwm"
I think the command should be exec dbus-launch leftwm, but I'm not 100% sure.
Most helpful comment
Oh you are right! It opened a terminal! Thank you!