mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-03 20:10:23 -04:00
Add startup errors, mention XDG_RUNTIME_DIR in README
It was just exiting with code 1 for me. The problem turned out to be that you *need* to set XDG_RUNTIME_DIR or it won't work (I think e.g. systemd does that for you, but on Void it's not set by default), so mention that in the README.
This commit is contained in:
parent
8c0afa7c73
commit
da5b4d965d
2 changed files with 6 additions and 0 deletions
2
dwl.c
2
dwl.c
|
@ -1074,6 +1074,7 @@ run(char *startup_cmd)
|
|||
const char *socket = wl_display_add_socket_auto(dpy);
|
||||
if (!socket) {
|
||||
wlr_backend_destroy(backend);
|
||||
perror("startup: socket");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
@ -1082,6 +1083,7 @@ run(char *startup_cmd)
|
|||
if (!wlr_backend_start(backend)) {
|
||||
wlr_backend_destroy(backend);
|
||||
wl_display_destroy(dpy);
|
||||
perror("startup: backend_start");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue