feat(entry): implement def validate_x11_environment

This commit is contained in:
dev 2026-02-23 13:14:06 +00:00
parent 83e3cdef33
commit d5fb035807

View file

@ -114,3 +114,12 @@ def validate_wayland_environment():
raise RuntimeError( raise RuntimeError(
f"Wayland socket not found: {socket_path}" f"Wayland socket not found: {socket_path}"
) )
# validate_x11_environment: function definition for ScanSlicer behavior.
def validate_x11_environment():
display_name = os.environ.get("DISPLAY", "").strip()
if not display_name:
raise RuntimeError(
"Missing X11 runtime environment. Set DISPLAY or use --backend wayland."
)