-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add in a short delay when opening the terminal on OSX #4197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Allows for users with ~/.bash_profile setups that open tmux, screen etc.. by default to launch the Julia app properly. See #3547 for discussion. A better implementation would be a command to Terminal.app to not start a bash login scrip, however a search for such a command has been unsuccessful.
The Julia binary on OS X always opens on Terminal.app? Or it uses something like xdg-open to determine which terminal emulator to use? (I've never used the pre-compiled binaries, but it would be pretty weird for me to see Terminal.app launching instead of iTerm 2) |
Yes, it is always Terminal.app. I'm not sure what the invocation for |
I don't understand this change. |
On some user's platforms, they have a An example of where this occurs is anytime a user has a program such as |
Hmm, not too satisfying. The .5 second is arbitrary of course. It seems strange for applescript commands to fail if the target app is not "ready" for them; you'd think that happens all the time, e.g. the app being busy computing something or not having started up yet. |
Yes, it is entirely arbitrary and unsatisfactory. It's not the Applescript that fails, it's because |
At least in 10.8, Terminal tabs have a tell application "Terminal"
busy of tab 1 of window 1
end tell This corresponds to the spinning indicator on the tab. I'm not sure exactly what heuristic this uses, but it returns |
That is a really neat idea, unfortunately, it doesn't work reliably. I don't think the |
does this script work any better?
|
Can somebody with a mac please try this? cc @StefanKarpinski @ViralBShah |
@vtjnash Sorry, this slipped through the cracks a bit. That fails to run on macs without the "Assistive Devices" checkbox checked in System Preferences. With that setting checked in System Preferences, the situation is improved somewhat; users with a |
Closing since this PR is not a sufficiently satisfying solution. We can try other approaches during the RC period. |
Allows for users with
~/.bash_profile
setups that open tmux, screen etc.. by default to launch the Julia app properly.See #3547 for discussion. A better implementation would be a command to Terminal.app to not start a shell that reads these customized scripts, however a search for such a command has been unsuccessful.