This commit is contained in:
Kovid Goyal 2024-03-26 09:55:52 +05:30
parent 83fcd472bb
commit c5fc65b56a
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -198,9 +198,9 @@ def compositor_name() -> str:
ans = 'X11'
if is_wayland():
ans = 'Wayland'
pid = wayland_compositor_pid()
if pid > -1:
with suppress(Exception):
with suppress(Exception):
pid = wayland_compositor_pid()
if pid > -1:
cmdline = cmdline_of_pid(pid)
exe = cmdline[0]
with suppress(Exception):