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
6 changes: 6 additions & 0 deletions .changeset/solid-ants-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@e2b/desktop-python': patch
'@e2b/desktop': patch
---

Uses minus minus in xdotool call to prevent parsing text as flag
4 changes: 3 additions & 1 deletion packages/js-sdk/src/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,9 @@ export class Sandbox extends SandboxBase {

for (const chunk of chunks) {
await this.commands.run(
`xdotool type --delay ${options.delayInMs} ${this.quoteString(chunk)}`
`xdotool type --delay ${options.delayInMs} -- ${this.quoteString(
chunk
)}`
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/python-sdk/e2b_desktop/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def break_into_chunks(text: str, n: int):

for chunk in break_into_chunks(text, chunk_size):
self.commands.run(
f"xdotool type --delay {delay_in_ms} {quote_string(chunk)}"
f"xdotool type --delay {delay_in_ms} -- {quote_string(chunk)}"
)

def press(self, key: Union[str, list[str]]):
Expand Down