feat(entry): implement def validate_x11_environment
This commit is contained in:
parent
83e3cdef33
commit
d5fb035807
1 changed files with 9 additions and 0 deletions
|
|
@ -114,3 +114,12 @@ def validate_wayland_environment():
|
|||
raise RuntimeError(
|
||||
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."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue