3v324v23 commited on
Commit
15a4dd9
·
1 Parent(s): 81b3f80

Fix: Remove circular dependency where app.py tries to start desktop script

Browse files
Files changed (1) hide show
  1. app.py +1 -16
app.py CHANGED
@@ -11,22 +11,7 @@ DESKTOP_ENV = os.getenv("DESKTOP_ENV", "xfce")
11
 
12
  # Start the desktop environment
13
  # Start the desktop environment
14
- def start_desktop():
15
- """Start the X11 desktop environment with VNC and noVNC"""
16
- print("Starting desktop environment...")
17
- try:
18
- # Use bash to execute the script to avoid permission issues
19
- subprocess.Popen(["bash", "/app/scripts/start-desktop.sh"],
20
- stdout=subprocess.PIPE,
21
- stderr=subprocess.PIPE)
22
- time.sleep(5) # Give services time to start
23
- print("Desktop environment started")
24
- except Exception as e:
25
- print(f"Error starting desktop: {e}")
26
-
27
- # Start desktop in background thread
28
- desktop_thread = threading.Thread(target=start_desktop, daemon=True)
29
- desktop_thread.start()
30
 
31
  # Agent API functions
32
  import requests
 
11
 
12
  # Start the desktop environment
13
  # Start the desktop environment
14
+ # Desktop environment is started by the container entrypoint script
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
  # Agent API functions
17
  import requests