pohmelie / run-in-terminal

Atom package for run some commands in terminal, or just run terminal
MIT License
17 stars 7 forks source link

Terminal Doesn't Start #3

Closed bobrocke closed 9 years ago

bobrocke commented 9 years ago

I must have my setting wrong because invoking a menu command does not launch a terminal session.

I've left everything at the default, expecting Mac OS X terminal.app to launch.

Are the defaults not appropriate on their own and must be supplied?

Does the "list of launchers by extension" need something besides the extension? Is it the full path to the desired terminal app?

pohmelie commented 9 years ago

I have no experience with mac os, but check console when running command. View → Developer → Toggle developer tools If there was some error you saw some debug information. Then you can post this information here.

bobrocke commented 9 years ago

There's an error:

run-in-terminal error when child_process.exec ->
cmd = your-favorite-terminal --foo --bar
error = Error: Command failed: /bin/sh -c your-favorite-terminal --foo --bar
/bin/sh: your-favorite-terminal: command not found

stdout = 
stderr = /bin/sh: your-favorite-terminal: command not found

That suggests the default setting won't work. So I set "list of launchers to: /Applications/Admin/iTerm.app and "terminal with arguments to: /Applications/Admin/iTerm.app. That configuration throws this error:

run-in-terminal error when child_process.exec ->
cmd = /Applications/Admin/iTerm.app
error = Error: Command failed: /bin/sh -c /Applications/Admin/iTerm.app
/bin/sh: /Applications/Admin/iTerm.app: is a directory

stdout = 
stderr = /bin/sh: /Applications/Admin/iTerm.app: is a directory

What do I need to fix in my configuration?

pohmelie commented 9 years ago

Launchers is only for determine which process to run inside your terminal, so it's later step. As I can see you get «is directory» error, so I think mac os have some console method to run such directory-package. I'm trying to run mac os in virtualbox, but boot time is pretty long (half an hour already and keep going). Is «iTerm.app» the default terminal on mac os? Try to find comman which starts terminal from terminal %) and then you can just copy it to the «terminal with arguemnts»

bobrocke commented 9 years ago

The default terminal for Mac OS X is Terminal.app.

pohmelie commented 9 years ago

I think you should use «open -a /path/to/terminal.app» as said here

bobrocke commented 9 years ago

That was it! Thanks for the extra research.