fixed cmdline close issue with mate-terminal

This commit is contained in:
Kaushal Kumar Agarwal 2018-08-20 17:23:02 +05:30 committed by GitHub
parent bf43539e3d
commit 64b1729685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ class FLOappStore:
if(apps[i]["type"] == "Gui"):
subprocess.Popen(apps[i]["exec"], cwd=apps[i]["location"])
elif(apps[i]["type"] == "Cmdline"):
subprocess.Popen(["gnome-terminal -- "+apps[i]["exec"]], cwd=apps[i]["location"],stdout=subprocess.PIPE, shell=True)
subprocess.Popen(["mate-terminal --command %s" % (apps[i]["exec"])],cwd=apps[i]["location"],stdout=subprocess.PIPE,shell=True)
elif(apps[i]["type"] == "Webapp"):
webbrowser.open(apps[i]["exec"],new=1)
@ -37,4 +37,4 @@ root = Tk()
root.title("FLOappStore")
gui = FLOappStore(root)
gui.start()
root.mainloop()
root.mainloop()