On Tue, 26 Oct 2010 10:53:02 +0000 (UTC), Martin Gregorie
<> declaimed the following in
gmane.comp.python.general:
> On Tue, 26 Oct 2010 02:38:43 -0400, Steve Holden wrote:
>
> >
> > I really don't understand what you are trying to say here. Could you
> > please explain? I know you to be a capable and sensible person, but this
> > sounds like nonsense to me, so I must be misunderstanding.
> >
> I think he's saying that on a Linux desktop, if you define a launcher for
> an application the default assumption is that its a graphical
> application. If so, all you need to do is to tell the launcher the
> program name, what icon to use and what text to put under it. If the
> application isn't graphical, you do the same as above and also tell the
> launcher that the program must run in a console window. Simple. Logical.
> Concise.
Which would be the point of divergence for Windows... Windows is
willing to try launching /anything/ WITHOUT first creating a
"launcher"... But applications that weren't linked as "GUI environment
-- application will handle all user interaction" trigger the opening of
a terminal/console for stdio.
I've not done enough programming at that level on Windows -- the
mere fact that, as I recall, a "GUI" program needs to have a WinMain()
rather than the common C main() is a turn-off... If the executable does
not have a WinMain... ta da, must be console application, open a console
for it.
(The Amiga made it simple -- a shell invocation received a non-zero
argc, with command line parameters in argv; a "clicked" invocation
received argc of 0, and argv pointed to a structure containing the
information from the associated .info file [Workbench only displayed
icons from .info files, unlike Windows displaying everything]).
--
Wulfraed Dennis Lee Bieber AF6VN
HTTP://wlfraed.home.netcom.com/