I have a Desktop Icon(Linux Mint system) that calls a script (conky) but also needs to exit so I don't have a terminal window open all the time. I'm trying to convert this to an onscreen python button.
I can get Python Button to run the script but I can't get it to close the terminal once the script is up and running fine.
This is the normal command: /home/user/.conky_start.sh && exit
Current Python Button Script:
import Tkinter
from Tkinter import *
import subprocess
top = Tkinter.Tk()
def run_conky():
subprocess.call(['/home/user/.conky_start.sh', '&&', 'exit'], shell=True)
B = Tkinter.Button(top, text ="Conky", command = run_conky)
B.pack()
top.mainloop()