Skip to content

Commit 4fd0e8e

Browse files
committed
emacsclient: check WAYLAND_DISPLAY
1 parent ce4e7bb commit 4fd0e8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib-src/emacsclient.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,9 @@ decode_options (int argc, char **argv)
611611
alt_display = "w32";
612612
#endif
613613

614-
display = egetenv ("DISPLAY");
614+
display = egetenv ("WAYLAND_DISPLAY");
615+
if (!display)
616+
display = egetenv ("DISPLAY");
615617
}
616618

617619
if (!display)

0 commit comments

Comments
 (0)