From 058c2b54139f9daef81ba94661cbd320f415489d Mon Sep 17 00:00:00 2001 From: Alvaro Neira Ayuso Date: Sun, 12 Apr 2020 19:11:52 +0200 Subject: Launch browser only in linux configuration --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index aa58ca0..f19520c 100755 --- a/main.py +++ b/main.py @@ -26,7 +26,8 @@ def main(): url = ogconfig.get_value_section('opengnsys', 'url') mode = ogconfig.get_value_section('opengnsys', 'mode') - proc = subprocess.Popen(["browser", "-qws", url]) + if mode == 'linux': + proc = subprocess.Popen(["browser", "-qws", url]) client = ogClient(ip, int(port), mode) client.connect() -- cgit v1.2.3-18-g5258