Add debug prints to track GUI startup progress

This commit is contained in:
nmemmert committed 2025-11-17 12:05:02 -05:00
1 parent f89b970c94
commit cdb6e53fb6
1 file changed
+3
+3
View File
@@ -954,10 +954,12 @@ class SystemTrayApp:
def main():
"""Main application entry point"""
print("Starting Journey FM Playlist app...")
try:
if not os.environ.get('DISPLAY'):
raise Exception("DISPLAY environment variable not set - no graphical display available")
print("Initializing GUI...")
# Set up high DPI scaling
QApplication.setHighDpiScaleFactorRoundingPolicy(
Qt.HighDpiScaleFactorRoundingPolicy.PassThrough
@@ -965,6 +967,7 @@ def main():
# Create and run application
tray_app = SystemTrayApp()
print("App initialized, starting event loop...")
sys.exit(tray_app.run())
except Exception as e:
print(f"Failed to start GUI application: {e}")