forked from Support/sp-hydra-veil-gui
Pre-req startup checks
This commit is contained in:
parent
f4e2058c62
commit
bbcd0acb0d
1 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
from core.utils.pre_req_startups import is_libxcb_cursor_available, direct_filename_works, prompt_user_on_missing_package
|
||||
from core.errors.logger import logger
|
||||
from core.models.manage.session_management import init_session, get_session, close_session, create_ALL_tables, create_ONLY_db_version_table, get_path, does_it_exist, does_db_version_table_exist
|
||||
from core.models.manage.version_check import check_database_compatibility, insert_new_version, get_custom_message
|
||||
|
|
@ -77,8 +77,13 @@ def emergency_sync():
|
|||
start_ui(force_sync=True)
|
||||
|
||||
# ============================================================================
|
||||
# BEGIN PROGRAM
|
||||
# BEGIN PROGRAM - (check pre-reqs)
|
||||
# ============================================================================
|
||||
if not is_libxcb_cursor_available():
|
||||
logger.error("Load of 'xcb-cursor' via find library failed. Trying direct explicit file name,")
|
||||
if direct_filename_works():
|
||||
prompt_user_on_missing_package(package_name="libxcb-cursor0")
|
||||
sys.exit()
|
||||
|
||||
# ============================================================================
|
||||
# ASSETS FOLDER
|
||||
|
|
|
|||
Loading…
Reference in a new issue