terminal icon indicating copy to clipboard operation
terminal copied to clipboard

When using `--terminal=terminal` terminal does not open on Mac OS Mojave 10.14.3

Open nicholasadamou opened this issue 6 years ago • 2 comments

I am running Mac OS Mojave 10.14.3 and from within iTerm2 I launch the following:

python <(curl -sL "https://raw.githubusercontent.com/skywind3000/terminal/master/terminal.py") --terminal=terminal ping -c 25 8.8.8.8 &> /dev/null

After executing the above command, no new terminal window opens, why?

nicholasadamou avatar Jan 25 '19 22:01 nicholasadamou

exit too soon ??

python <(curl -sL "https://raw.githubusercontent.com/skywind3000/terminal/master/terminal.py") --wait ls -la

does the command above work ??

skywind3000 avatar Jan 26 '19 01:01 skywind3000

That works, except it, launches a process with the title winex_##.cmd. I want to run the command with Terminal.app. According to terminal.py, the function that creates a process called winex_##.cmd is: darwin_open_system, when I pass --terminal=terminal or -m terminal, the script just quits. The function that should create a Terminal.app instance is darwin_open_terminal which is called when I pass either --terminal=terminal or -m terminal, which seems to fail.

nicholasadamou avatar Jan 26 '19 02:01 nicholasadamou