Launch browser only in linux configuration

more_events
Alvaro Neira Ayuso 2020-04-12 19:11:52 +02:00
parent 7f646fc468
commit 058c2b5413
1 changed files with 2 additions and 1 deletions

View File

@ -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()