Added check for XDG_RUNTIME_DIR
This commit is contained in:
parent
ff1aac0093
commit
2f444a9e4f
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");
|
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;
|
struct kiwmi_server server;
|
||||||
|
|
||||||
if (!server_init(&server, frontend_path)) {
|
if (!server_init(&server, frontend_path)) {
|
||||||
|
|
Loading…
Reference in a new issue