feat: validate whether geeqie is installed

This commit is contained in:
2026-07-15 14:49:45 +03:00
parent a80aa34c62
commit 6a9ffbf96a
2 changed files with 21 additions and 1 deletions
+9
View File
@@ -1,8 +1,17 @@
import os
import pathlib
import shutil
import subprocess
def is_geeqie_available() -> bool:
"""
Check if the Geeqie image viewer is available on the system.
:return: True if Geeqie is available, False otherwise.
"""
return shutil.which("geeqie") is not None
def open_file_with_default_app(file_path: pathlib.Path) -> bool:
"""
Open the specified file path with the default application associated with its file type.