Originally Posted By: mlord
And I've managed to tie it to a widget (desktop button), but clicking it opens a terminal window that must then be closed manually.

Have you checked if there's a config setting for the terminal that controls whether the window stays open when the last command exits? IIRC, OS X's terminal behaves in this same manner. I think so you can see if there's any errors before the window goes away.