deeplow 2022-08-26 11:24:56 +01:00
parent 75fe45cfb6
commit 01a5e3b7ca
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -4,6 +4,7 @@ import pipes
import platform import platform
import shlex import shlex
import subprocess import subprocess
from typing import Dict
from colorama import Fore from colorama import Fore
from PySide2 import QtCore, QtGui, QtWidgets from PySide2 import QtCore, QtGui, QtWidgets
@ -82,8 +83,8 @@ class GuiCommon(object):
log.info(Fore.YELLOW + "> " + Fore.CYAN + args_str) log.info(Fore.YELLOW + "> " + Fore.CYAN + args_str)
subprocess.Popen(args) subprocess.Popen(args)
def _find_pdf_viewers(self) -> dict[str, str]: def _find_pdf_viewers(self) -> Dict[str, str]:
pdf_viewers: dict[str, str] = {} pdf_viewers: Dict[str, str] = {}
if platform.system() == "Linux": if platform.system() == "Linux":
# Find all .desktop files # Find all .desktop files
for search_path in [ for search_path in [