mirror of
https://github.com/vidarh/ruby-x11
synced 2024-12-26 09:59:02 +01:00
More resilient handling of display settings.
This commit is contained in:
parent
c5f8743089
commit
5bb377937f
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ module X11
|
||||||
# with each entry from XAuthority file
|
# with each entry from XAuthority file
|
||||||
until @file.eof?
|
until @file.eof?
|
||||||
r = read()
|
r = read()
|
||||||
auth_data = r if display_id.to_i == r.display.to_i
|
auth_data = r if r.display.empty? || display_id.to_i == r.display.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
reset
|
reset
|
||||||
|
|
Loading…
Reference in a new issue