Change subprocess bullet character in one more places

This commit is contained in:
Micah Lee 2021-06-17 12:16:02 -07:00
parent 51414f2c96
commit 3c0dc74407
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ class GuiCommon(object):
# Run
args_str = " ".join(pipes.quote(s) for s in args)
print(Fore.YELLOW + "\u2023 " + Fore.CYAN + args_str) # ‣
print(Fore.YELLOW + "> " + Fore.CYAN + args_str)
subprocess.run(args)
elif platform.system() == "Linux":
@ -76,7 +76,7 @@ class GuiCommon(object):
# Open as a background process
args_str = " ".join(pipes.quote(s) for s in args)
print(Fore.YELLOW + "\u2023 " + Fore.CYAN + args_str) # ‣
print(Fore.YELLOW + "> " + Fore.CYAN + args_str)
subprocess.Popen(args)
def _find_pdf_viewers(self):

View file

@ -39,7 +39,7 @@ class TaskBase(QtCore.QThread):
if p.returncode == 126 or p.returncode == 127:
self.task_failed.emit(f"Authorization failed")
elif p.returncode == 0:
elif p.returncode != 0:
self.task_failed.emit(f"Return code: {p.returncode}")
print("")