HOME


Mini Shell 1.0
DIR: /proc/thread-self/root/usr/share/apport/general-hooks/
Upload File :
Current File : //proc/thread-self/root/usr/share/apport/general-hooks/wayland_session.py
"""Detect if the current session is running under Wayland."""

import os


def add_info(report, unused_ui):
    """Add a tag if current session is running under Wayland."""
    if os.environ.get("WAYLAND_DISPLAY"):
        report.add_tags(["wayland-session"])