On 2022-02-14 12:48, Po Lu wrote: > Andrew Tropin writes: > >> That's right, emacsclient has a wrong display value. > > Could you attach a debugger to emacsclient, and set a breakpoint at this > bit of lib-src/emacsclient.c: > > => if (display && !display[0]) > display = NULL; > > And show the value of `display'? I hope I did everything correctly: Breakpoint 1, decode_options (argc=2, argv=0x7fffffffcbd8) at emacsclient.c:625 625 if (display && !display[0]) (gdb) p display $7 = 0x7fffffffe926 "wayland-1" The same binary started from terminal: ./lib-src/emacsclient --eval '(x-display-list)' ("wayland-0") -- Best regards, Andrew Tropin