This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Running a simple GUI app
On Mon, Aug 18, 2008 at 06:42:58PM -0000, John Emmas wrote:
> Sorry Phil if my questions seem 'lame'. I should have explained that I
> only
> installed Cygwin this morning so I'm by no means up to speed with the
> concepts or terminology.
>
> Anyway, I managed to arrange Windows so that it now starts X at boot up.
> This means that I can use a (DOS) console window to navigate to the
> appropriate directory, type 'HelloWorld' and my HelloWorld app launches
> with X just running silently in the background. That's a lot slicker than
> the procedure I was using a few hours ago. Thanks for the suggestion.
>
> What's strange though is that I can't just double-click on the app's icon
> and launch it. There's a (slim) chance that this could be a Windows
> problem
> but I've never known any other Windows app that can be started from a
> command line but can't be started by clicking its icon. Any ideas?
X apps use a DISPLAY environment variable to denote which display they
should attach to. It's possible that all that you need to do is add
DISPLAY=:0 to your environment via the Control Panel->Systems setting.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/