Added check for XDG_RUNTIME_DIR
This commit is contained in:
parent
7f28300662
commit
ca640aafc0
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ main(int argc, char **argv)
|
|||
|
||||
fprintf(stderr, "Using kiwmi v" KIWMI_VERSION "\n");
|
||||
|
||||
if (!getenv("XDG_RUNTIME_DIR")) {
|
||||
wlr_log(WLR_ERROR, "XDG_RUNTIME_DIR not set");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
struct kiwmi_server server;
|
||||
|
||||
if (!server_init(&server, frontend_path)) {
|
||||
|
|
Loading…
Reference in a new issue