# HG changeset patch # User Yuya Nishihara # Date 1612436205 -32400 # Node ID 128a17d8436fcdf04139739d8a38a270defef99a # Parent 33dbc9f785e719fb583e8e3c2984634258f1fd77 procutil: extend gui test to detect wayland session (issue6479) diff -r 33dbc9f785e7 -r 128a17d8436f mercurial/utils/procutil.py --- a/mercurial/utils/procutil.py Tue Feb 02 23:44:44 2021 +0530 +++ b/mercurial/utils/procutil.py Thu Feb 04 19:56:45 2021 +0900 @@ -546,7 +546,11 @@ # pure build; use a safe default return True else: - return pycompat.iswindows or encoding.environ.get(b"DISPLAY") + return ( + pycompat.iswindows + or encoding.environ.get(b"DISPLAY") + or encoding.environ.get(b"WAYLAND_DISPLAY") + ) def gui():