delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/03/14:01:01

X-Spam-Check-By: sourceware.org
Date: Tue, 3 Apr 2007 14:00:34 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Elliston, Jack W CTR USA TRADOC NSC" <Jack DOT Elliston AT us DOT army DOT mil>
cc: cygwin AT cygwin DOT com
Subject: RE: 1.5.24 remote launch of java gui
In-Reply-To: <9735AA8FA77D4246B586FEA2554869D019859A@leav101beexs001.nanw.ds.army.mil>
Message-ID: <Pine.GSO.4.63.0704031356140.19105@access1.cims.nyu.edu>
References: <9735AA8FA77D4246B586FEA2554869D019853F AT leav101beexs001 DOT nanw DOT ds DOT army DOT mil> <Pine DOT GSO DOT 4 DOT 63 DOT 0704031255410 DOT 19105 AT access1 DOT cims DOT nyu DOT edu> <018c01c77613$45c3bb20$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <Pine DOT GSO DOT 4 DOT 63 DOT 0704031327460 DOT 19105 AT access1 DOT cims DOT nyu DOT edu> <9735AA8FA77D4246B586FEA2554869D019859A AT leav101beexs001 DOT nanw DOT ds DOT army DOT mil>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Ugh, top-posting...  Reformatted.

On Tue, 3 Apr 2007, Elliston, Jack W  CTR USA TRADOC NSC wrote:

> -----Original Message-----
> From: Igor Peshansky [mailto:pechtcha AT XX DOT XXX DOT XXX]
> Sent: Tuesday, April 03, 2007 12:30 PM
> To: Dave Korn
> Cc: cygwin AT XXXXXX DOT XXX; Elliston, Jack W CTR USA TRADOC NSC

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> Subject: RE: 1.5.24 remote launch of java gui
>
> > On Tue, 3 Apr 2007, Dave Korn wrote:
> >
> > > On 03 April 2007 17:57, Igor Peshansky wrote:
> > >
> > > > There is no Cygwin version of Java.  Therefore, you're starting a
> > > > Windows version of Java, which is not an X application.  You will
> > > > not be able to forward the display
> > >
> > >   He doesn't want to.  He wants the display to appear on the same
> > > remote machine where the java process is being launched.
> >
> > So he does.  Then he'll just need to check the "Allow service to
> > interact with the desktop" checkbox in the service properties (or use
> > the -i cygrunsrv flag).  Unless he uses privilege separation, in which
> > case he's out of luck (as this option is only available for services
> > running as "system").
> > 	Igor
>
> OK.  Now I am bit confused.

So are we.

> I am not trying to run a service on the remote cygwin box and so I don't
> see how I would 'check the "Allow service to interact with the desktop"
> checkbox' or why I would use the cygrunsrv application.

Your remote box is Cygwin, and you're logging in via ssh, right?  That
means that you *are* most likely running sshd as a service.

> I just need to run the java app on machine 2 via a ssh connection from
> machine 1.  I want the app to display it gui on machine 2.

Exactly.  When you log in via ssh, the sshd service spawns your Java
application.  To be able to display the resulting window, it needs your
permission to "interact with the desktop".

> I don't really even think the Xserver is required since the app runs on
> machine 2 when launched on machine 2 without an Xserver installed.

No, Java does not use X, since it's a pure Windows application.  It uses
Win32 GDI calls.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019