From e89ea6a6a20440f2a00e7ed2d422971902cef3ae Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 17 Jul 2015 13:54:34 +0000 Subject: [PATCH] Redisplay after spawning browser After launching a browser child process, gertty's display may no longer be current (e.g., when using a console-based browser). Redisplay the screen contents following browser execution as a prophylactic measure. Note: you can test this by invoking `BROWSER=lynx gertty` with lynx installed (but really, can you call it a computer if it doesn't have lynx installed?!?). Change-Id: I929e6ec4252b3e4c7c8c425a87cc8be7c0434828 --- gertty/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gertty/app.py b/gertty/app.py index 9e9a38f..156d107 100644 --- a/gertty/app.py +++ b/gertty/app.py @@ -525,6 +525,7 @@ class App(object): def openURL(self, url): self.log.debug("Open URL %s" % url) webbrowser.open_new_tab(url) + self.loop.screen.clear() def time(self, dt): utc = dt.replace(tzinfo=dateutil.tz.tzutc())