ubuntu-22.04.3-desktop-amd64/casper/filesystem/usr/share/apport/general-hooks/wayland_session.py

10 lines
225 B
Python

'''Detect if the current session is running under wayland'''
import os
def add_info(report, ui):
if os.environ.get('WAYLAND_DISPLAY'):
report.setdefault('Tags', '')
report['Tags'] += ' wayland-session'