mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
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:
parent
2f2cdd60de
commit
a4d2703dc2
1 changed files with 2 additions and 0 deletions
|
|
@ -319,6 +319,8 @@ int main(int argc, char **argv) {
|
||||||
if (!getenv("XDG_RUNTIME_DIR") && optind == argc) {
|
if (!getenv("XDG_RUNTIME_DIR") && optind == argc) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"XDG_RUNTIME_DIR is not set in the environment. Aborting.\n");
|
"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);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue