Added check for XDG_RUNTIME_DIR

This commit is contained in:
buffet 2019-04-08 18:10:26 +02:00
parent ff1aac0093
commit 2f444a9e4f

View file

@ -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)) {