Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Add startup errors, mention XDG_RUNTIME_DIR in README #5

Merged
merged 1 commit into from
Jun 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ this process a SIGTERM and wait for it to terminate (if it hasn't already).
This makes it ideal not only for initialization but also for execing into a
user-level service manager like s6 or `systemd --user`.

You'll have to explicitly set `XDG_RUNTIME_DIR` if your system doesn't do it for
you, e.g. `export XDG_RUNTIME_DIR=/tmp/xdg-runtime-$USER && mkdir -p
$XDG_RUNTIME_DIR`.

More/less verbose output can be requested with flags as well:

* `-q`: quiet (log level WLR_SILENT)
Expand Down
2 changes: 2 additions & 0 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down