Debug flag if PUREX_DEBUG env var is set

This commit is contained in:
Vidar Hokstad 2024-01-11 19:18:04 +00:00
parent 04a7851a65
commit 7f7db9f571

View file

@ -17,6 +17,8 @@ module X11
host, display_id, screen_id = $1, $2, $3
family = nil
@debug = ENV["PUREX_DEBUG"].to_s.strip == "true"
if host.empty?
@socket = UNIXSocket.new("/tmp/.X11-unix/X#{display_id}")
family = :Local