From 2f444a9e4f789ed50909687d1743771f0d3ca4cc Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 8 Apr 2019 18:10:26 +0200 Subject: [PATCH] Added check for XDG_RUNTIME_DIR --- kiwmi/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kiwmi/main.c b/kiwmi/main.c index b9f0a49..9510caf 100644 --- a/kiwmi/main.c +++ b/kiwmi/main.c @@ -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)) {