Fix compatibility issues with Qt/PyQt6 versions
Some checks failed
build / build-win64 (push) Waiting to run
build / build-macos (push) Waiting to run
build / build-pip (push) Failing after 11s

- Add null check for message.message in search filter
- Handle missing colorScheme/colorSchemeChanged methods for older Qt versions
- Add display check to prevent hanging in headless environments
- Update build documentation with system package alternative
- Update PyInstaller spec for Python 3.12
- Improve run.sh script with venv management
This commit is contained in:
kdusek
2025-12-06 04:00:10 +01:00
parent 2b3d9eb07f
commit 7b695d7b7f
11 changed files with 64 additions and 14 deletions

View File

@@ -1,11 +1,21 @@
def main():
import os
import sys
if "--version" in sys.argv:
from gotify_tray.__version__ import __version__
print(__version__)
else:
# Check for display before importing GUI modules
if not os.environ.get("DISPLAY"):
print(
"Error: No display environment detected. This application requires a graphical desktop environment to run.",
file=sys.stderr,
)
sys.exit(1)
from gotify_tray.gui import start_gui
start_gui()