Commit 6f8ffbbc by Őry Máté

notify: fix os.environ handling

parent d24ba1e7
......@@ -104,7 +104,11 @@ def notify(url):
if display:
webbrowser.open(url, new=2, autoraise=True)
finally:
if olddisplay:
os.environ["DISPLAY"] = olddisplay
elif 'DISPLAY' in os.environ:
del os.environ["DISPLAY"]
def file_already_exists(name, mode=0644):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment