Spaces:
Paused
Paused
Update file-manager/app.py
Browse files- 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
|