Skip to content

Commit

Permalink
Fix simple terminal (st) run command in external window (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
8manz authored Jun 23, 2024
1 parent 7b6d7e8 commit 229d8cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion porcupine/plugins/run/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ def _run_in_x11_like_terminal(command: str | None, cwd: Path, env: dict[str, str

if command:
real_command = [str(run_script), str(cwd), command]
subprocess.Popen([terminal, "-e", " ".join(map(shlex.quote, real_command))], env=env)
if terminal == "st":
subprocess.Popen([terminal, "-e", *real_command], env=env)
else:
subprocess.Popen([terminal, "-e", " ".join(map(shlex.quote, real_command))], env=env)
else:
subprocess.Popen(terminal, cwd=cwd, env=env)

Expand Down

0 comments on commit 229d8cd

Please sign in to comment.