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.
This commit is contained in:
Jostein Kjønigsen 2023-01-15 13:00:11 +00:00
parent 2f2cdd60de
commit a4d2703dc2

View file

@ -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);
}