More resilient handling of display settings.

This commit is contained in:
Vidar Hokstad 2023-08-01 20:14:05 +01:00
parent c5f8743089
commit 5bb377937f

View file

@ -43,7 +43,7 @@ module X11
# with each entry from XAuthority file
until @file.eof?
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
reset