CORVO-AI commited on
Commit
0acb5a1
·
verified ·
1 Parent(s): 1933b0a

Update file-manager/app.py

Browse files
Files changed (1) hide show
  1. file-manager/app.py +1 -0
file-manager/app.py CHANGED
@@ -30,6 +30,7 @@ class PtyShell:
30
  if self.pid == 0:
31
  # child: become an interactive bash inside the PTY
32
  os.environ["TERM"] = "xterm-256color"
 
33
  os.execvp("bash", ["bash", "-i"])
34
  else:
35
  # parent: set the fd non-blocking so reads never hang
 
30
  if self.pid == 0:
31
  # child: become an interactive bash inside the PTY
32
  os.environ["TERM"] = "xterm-256color"
33
+ os.chdir("/") # <-- start at the system root
34
  os.execvp("bash", ["bash", "-i"])
35
  else:
36
  # parent: set the fd non-blocking so reads never hang