Attached is a slight reworking of Kayvan's patch that causes no linkage problems for tex2lyx. It also implements JMarc's suggested changes.
I've also added Qt and XForms frontends. I've tested that they do what they're supposed to do (by commenting out all of the #if defined(__CYGWIN__) || defined(__CYGWIN32__) ... #endif blocks. I've also checked that there's minimal polution of the Edit->Preferences dialog if you're not using Cygwin. (On Qt, there's no polution, on XForms there's a disabled check button on the Outputs->Misc tab. The one thing that I haven't been able to check is that the patch actually leads to the desired output on Cygwin. Kayvan, can you confirm that all works for you? Angus
cygwin_fix_14x.diff.bz2
Description: BZip2 compressed data