From a4d2703dc20fb661e634c138de99fe6b411b76f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20Kj=C3=B8nigsen?= Date: Sun, 15 Jan 2023 13:00:11 +0000 Subject: [PATCH] Provide more user-friendly error-message when XDG_RUNTIME_DIR is missing. This should help avoid github-issues for cases like https://github.com/swaywm/sway/issues/7202. --- sway/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/main.c b/sway/main.c index 85bc2f1c9..e5f6871e0 100644 --- a/sway/main.c +++ b/sway/main.c @@ -319,6 +319,8 @@ int main(int argc, char **argv) { if (!getenv("XDG_RUNTIME_DIR") && optind == argc) { fprintf(stderr, "XDG_RUNTIME_DIR is not set in the environment. Aborting.\n"); + fprintf(stderr, + "Please check that user is member of seat group and that the seatd.service is enabled.\n"); exit(EXIT_FAILURE); }