/Users/me/dir/executable to run every time I log in.
You can think of the executable as basically a text file that has executable permissions and contains something like this:
The previous sentence might be the key to the answer. Executing something like chrome doesn't leave behind a Terminal window but executing the text file does.
I've configured a Login Item that points to this executable text file and I've checked the Hide check-box (not sure what that does).
Now, every time I log in there is a Terminal window associated with this login item. The window says
Last login: (timestamp) /Users/me/dir/executable ; exit; machine:~ me$ /Users/me/dir/executable ; exit; logout [Process completed]
I've learned that I need to uncheck
Reopen windows when logging back in so that prevents these windows from accumulating over time. But I'd like to hide/eliminate the window entirely.
How can I have a Login Item that doesn't leave behind a Terminal window?
Note: I've considered using launchd. But the thing I want to run has/wants a UI so running it hidden in the background isn't what I want to do.