g_application_run(): Fix on Windows When Using Bindings
g_application_run(): Fix on Windows When Using Bindings

As g_win32_get_command_line() calls CommandLineToArgvW() to acquire the
arguments passed into a GApplication program, it actually returns the
whole command line which is used to invoke the program, including the
script interpreter and its flags when a script using GNOME bindings
(e.g. PyGObject and so on) is being invoked.

The issue here is that g_application_run() would most probably have
trouble in the scripts scenario on Windows as it is likely unable to
"recognize" the script interpreter, causing such scripts to fail to run.

Largely based on the patch by Ray Donnelly <mingw.android@gmail.com>.

https://bugzilla.gnome.org/show_bug.cgi?id=734095

Distrotech/glib,MathieuDuponchelle/glib,mzabaluev/glib,mzabaluev/glib,MathieuDuponchelle/glib,johne53/MB3Glib,MathieuDuponchelle/glib,MathieuDuponchelle/glib,mzabaluev/glib,endlessm/glib,Distrotech/glib,endlessm/glib,endlessm/glib,Distrotech/glib,johne53/MB3Glib,MathieuDuponchelle/glib,johne53/MB3Glib,johne53/MB3Glib,mzabaluev/glib,mzabaluev/glib,endlessm/glib,Distrotech/glib,endlessm/glib,johne53/MB3Glib,johne53/MB3Glib,Distrotech/glib