From 5bb377937f70255ced11bf59f85825b44f1f2b38 Mon Sep 17 00:00:00 2001 From: Vidar Hokstad Date: Tue, 1 Aug 2023 20:14:05 +0100 Subject: [PATCH] More resilient handling of display settings. --- lib/X11/auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/X11/auth.rb b/lib/X11/auth.rb index 42882e0..bd28872 100644 --- a/lib/X11/auth.rb +++ b/lib/X11/auth.rb @@ -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