Replace to Popen

This commit is contained in:
manijamali2003 2023-08-15 19:57:49 +03:30
parent 491fb4d746
commit d04f83b601
2 changed files with 4 additions and 4 deletions

View file

@ -1273,12 +1273,12 @@ class Main(Quick):
# DO: Run Calamares Installer
def install_(self):
self.close()
subprocess.run('sudo sh /etc/calamares/launch.sh',shell=True)
subprocess.Popen('sudo sh /etc/calamares/launch.sh',shell=True)
# DO: Loading link in `xdg-open` function
def link(self,url):
self.close()
subprocess.run(f'xdg-open {url}',shell=True)
subprocess.Popen(f'xdg-open {url}',shell=True)
# DO: Init Function
def __init__(self):

View file

@ -72,12 +72,12 @@ class Main(Quick):
# DO: Run Calamares Installer
def install_(self):
self.close()
subprocess.run('sudo sh /etc/calamares/launch.sh',shell=True)
subprocess.Popen('sudo sh /etc/calamares/launch.sh',shell=True)
# DO: Loading link in `xdg-open` function
def link(self,url):
self.close()
subprocess.run(f'xdg-open {url}',shell=True)
subprocess.Popen(f'xdg-open {url}',shell=True)
# DO: Init Function
def __init__(self):