I have a GUI application written using GTK that I would like to launch (by double clicking it in Windows File Explorer) with the Mintty terminal used by MSYS2 along with it. This is for debugging purposes with print statements.
If I were in Ubuntu I would use a .desktop file to launch the GUI application with Terminal=true set.
Is there an environment variable, compiler flag, or the like that will force the Mintty terminal to come up with the application when it is launched outside of the MSYS2 terminal in Windows?