mirror of
https://github.com/vidarh/ruby-x11
synced 2024-11-16 07:48:12 +01:00
Debug flag if PUREX_DEBUG env var is set
This commit is contained in:
parent
04a7851a65
commit
7f7db9f571
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue