Commit 293ce465 by Csók Tamás

client: linux installer packages for 64 and 32bit

parent ecfb7753
......@@ -14,6 +14,14 @@ import glob
import remminapasswd
def check_remmina():
config_file = os.path.expanduser("~/.remmina/remmina.pref")
if not os.path.isfile(config_file):
process = subprocess.Popen("remmina")
time.sleep(2)
process.terminate()
def connect(vm):
"""
Handles to connection to the Virtual Machines from the local
......@@ -36,6 +44,7 @@ def connect(vm):
})
subprocess.call(command, shell=True)
elif vm.protocol in ("NX", "RDP"):
check_remmina()
server = "%s:%s" % (vm.host, vm.port)
listdir = os.path.expanduser("~/.remmina/*.remmina")
found = False
......@@ -47,7 +56,7 @@ def connect(vm):
if not found:
config_file = "%s%s%s" % (
os.path.expanduser("~/.remmina/"),
str(int(time.time()*1000)), ".remmina")
str(int(time.time() * 1000)), ".remmina")
password = remminapasswd.remminapasswd(vm.password)
f = open(config_file, 'w')
if vm.protocol == "NX":
......
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