mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
Sway clients: Exit gracefully when compositor is unavailable
This commit is contained in:
parent
56c388b510
commit
32ba8154b8
5 changed files with 24 additions and 5 deletions
|
|
@ -388,7 +388,9 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
state.display = wl_display_connect(NULL);
|
||||
if (state.display == NULL) {
|
||||
wlr_log(WLR_ERROR, "Failed to create display");
|
||||
wlr_log(WLR_ERROR, "Unable to connect to the compositor. "
|
||||
"If your compositor is running, check or set the "
|
||||
"WAYLAND_DISPLAY environment variable.");
|
||||
return -3;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue