Commit 75cdad9a authored by Ramon Buldó's avatar Ramon Buldó

Check DISPLAY when using interactive mode

Fixes #23
parent c43bca86
......@@ -196,7 +196,7 @@ class PacmanMirrors:
self.config["mirror_list"] = os.getcwd() + "/" + args.output
self.default_mirror_list = self.config["mirror_list"]
if GTK_AVAILABLE and args.interactive:
if GTK_AVAILABLE and (os.environ.get['DISPLAY'] is not None) and args.interactive:
self.interactive = True
if args.timeout:
self.max_wait_time = args.timeout
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 to comment