The new mozilla-launcher package, could be adapted to support starting mozilla-thunderbird also. This also would automatically add support for detecting running instances of thunderbird, solving bug 45367. It would also unify all mozilla startup scripts, and make centralized changes to mozilla-xremote-client easy to fix.
Created attachment 28541 [details, diff] Fixes mozilla-launcher to include rudimentry thunderbird support Attached is a patch that adds rudimentary thunderbird support. Note that it will open a new thunderbird window, or attempt to raise the existing one. This hasn't been tested over multiple desktops (in fact, I'm not sure how that ought to work, so I'll let someone else figure it out). It also does not yet handle URLs, so thunderbird junk@yahoo.com simply ignores the address. It may also break running mozillas with multiple URLs because $u may get evaluated in the which_browser function, rather than when it is intended to be used. I don't know enough bash scripting to help me delay it's evaluation. Any help would be appreciated. Finally this also includes a small workaround for mozilla programs, in that it removes the space between the comma and the new-{$newtype} command. This is a bug in mozilla, and is documented as Mozillabug 229681. It seems to have gone unnoticed by the mozilla developers, if anyone can bring it to their attention that would also be nice. 5:)
Sorry, I just realised the patch may not apply cleanly to the original version of mozilla-launcher because I had already included the workaround for mozillabug 229681 when I made the diff. Sorry about that. It should be easy to see how to rectify it, so it does apply cleanly.
Created attachment 28543 [details, diff] Updated patch to fix $u evaluation problem Fixed patch that now applies directly to original mozilla-launcher-1.2, and includes a fix to ensure that the $u term is evalutated when needed, not during which_browser. Figured I didn't need to do the same for new-type since that gets set once at the top and doesn't get changed.
Thanks Mike. I wrote mozilla-launcher, but I haven't used thunderbird before. I'll take a look at your suggestions and hopefully get something out soon.
Seems I've done some redundant work: Could you also make Thunderbird handle multiple mailto's, like I did in my modified script? I haven't done it in an universal way, but... it works.
Sorry I haven't gotten to this yet, I hope to soon
Thanks guys. All set in thunderbird-0.6-r1 and mozilla-launcher-1.6