From ca640aafc0225b69ccd5f79a7b9959950531745c Mon Sep 17 00:00:00 2001 From: Charlotte Meyer 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 d5076de..a0d3628 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)) {