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