diff --git a/src/install.py b/src/install.py index 785e75c..71aaee1 100644 --- a/src/install.py +++ b/src/install.py @@ -4,14 +4,19 @@ import sys import textwrap from pathlib import Path +log = logging.getLogger("install") + def install(): - if sys.platform == 'win32' or sys.platform == 'cygwin': - _windows_set_icon() - else: - if _is_executable(): - _linux_install_desktop_file() - _linux_install_icon() + try: + if sys.platform == 'win32' or sys.platform == 'cygwin': + _windows_set_icon() + else: + if _is_executable(): + _linux_install_desktop_file() + _linux_install_icon() + except: + log.exception("failed to install system stuff") def _is_executable() -> bool: