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
This commit is contained in:
@@ -8,12 +8,13 @@ def main():
|
||||
print(__version__)
|
||||
else:
|
||||
# Check for display before importing GUI modules
|
||||
if not os.environ.get("DISPLAY"):
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user