Files
gotify-tray-customized/gotify_tray/__main__.py
kdusek 5138303016
Some checks failed
build / build-pip (push) Failing after 16s
build / build-win64 (push) Has been cancelled
build / build-macos (push) Has been cancelled
Fix tray visibility and message reception issues
- Disable sound initialization to prevent hanging
- Add missing import re in utils.py
- Fix settings loading for QSettings
- Update file paths to use PROJECT_ROOT
- Revert to working API paths and listener from commit efdc63e
2025-12-07 22:39:07 +01:00

25 lines
659 B
Python

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") or os.environ.get("WAYLAND_DISPLAY")):
print(
"Error: No display environment detected. This application requires a graphical desktop environment to run.",
file=sys.stderr,
)
sys.exit(1)
print("Launching GUI")
from gotify_tray.gui import start_gui
start_gui()
if __name__ == "__main__":
main()