fingolfin / gap-osx-bundle

Bundle GAP and related software into a binary installer for Mac OS X
5 stars 3 forks source link

Allow using iTerm instead of Terminal.app #11

Open fingolfin opened 10 years ago

fingolfin commented 10 years ago

The GAP.app, when double clicked, launches into Terminal.app. But some people (e.g. myself :) may prefer using iTerm2. Can we somehow give them an option to switch which terminal is used?

Then again, this may be unnecessary -- those people likely are terminal pros, and can simply bypass the .app bundle and launch GAP directly from it via terminal...

fingolfin commented 10 years ago

Perhaps we should just default to iTerms if it is present, under the assumption that anybody who has it wants to use it. Or check if either Terminal.app or iTerm.app is running -- then prefer whichever is running.

Finally (and independently of the above) we could use the defaults tool to store and load the user's preference on this. Combined, we could use this logic:

if `defaults` are set then use that
elif iTerm.app running then use that
elif Terminal.app running then use that
elif iTerm.app present then use that
else use Terminal.app
endif

Then, we could simply add a paragraph to the README stating that if the user prefers using iTerm or Terminal.app, they can enter defaults write SOME_DOMAIN DefaultTerminal VALUE where VALUE may be Terminal.app or iTerm.app (or any other compatible terminal emulator app)