Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ pip install fastapi uvicorn
uvicorn server:app --reload
```

## Android

The step-by-step guide for installing Open Interpreter on your Android device can be found in the [open-interpreter-termux repo](https://github.com/Arrendy/open-interpreter-termux).

## Safety Notice

Since generated code is executed in your local environment, it can interact with your files and system settings, potentially leading to unexpected outcomes like data loss or security risks.
Expand Down
10 changes: 1 addition & 9 deletions interpreter/terminal_interface/start_terminal_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,18 +304,10 @@ def start_terminal_interface(interpreter):

if platform.system() == "Windows":
os.startfile(config_directory)
else:
subprocess.call(["xdg-open", config_directory])

# Use the default system editor to open the file
if platform.system() == "Windows":
os.startfile(
config_file
) # This will open the file with the default application, e.g., Notepad
else:
try:
# Try using xdg-open on non-Windows platforms
subprocess.call(["xdg-open", config_file])
subprocess.call(["xdg-open", config_directory])
except FileNotFoundError:
# Fallback to using 'open' on macOS if 'xdg-open' is not available
subprocess.call(["open", config_file])
Expand Down