summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-02-24 14:31:31 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-02-24 14:53:42 +0100
commitbf69d20966ba71c710078f1b8d790b022551154e (patch)
tree771b4159d8a0506f4ae63e7b1ffae8641a1140d6 /main.py
parent6f7ba325b818ae6fcfd373566afdb72eb4f55d55 (diff)
Launch the graphical interface
This patch adds the launching of the browser that works as interface for the users in ogLive.
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.py b/main.py
index b568509..b72a6f6 100644
--- a/main.py
+++ b/main.py
@@ -6,6 +6,7 @@
# Free Software Foundation, version 3.
#
+import subprocess
from src.ogClient import *
from src.ogConfig import *
from signal import signal, SIGPIPE, SIG_DFL
@@ -19,6 +20,9 @@ def main():
ip = ogconfig.get_value_section('opengnsys', 'ip')
port = ogconfig.get_value_section('opengnsys', 'port')
+ url = ogconfig.get_value_section('opengnsys', 'url')
+
+ proc = subprocess.Popen(["browser", "-qws", url])
client = ogClient(ip, int(port))
client.connect()