public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
To: cygwin-xfree@cygwin.com
Cc: moss@cs.umass.edu
Subject: Re: Issue with XWin under xlaunch
Date: Tue, 24 Apr 2012 11:40:00 -0000	[thread overview]
Message-ID: <4F96911C.30608@dronecode.org.uk> (raw)
In-Reply-To: <4F95864B.1090802@cs.umass.edu>

On 23/04/2012 17:41, Eliot Moss wrote:
> Ok -- by perusing the log I figured it out ...

> [727848.279] executing 'xterm -display :0.0 -ls -title swarm     -bg rgbi:.0/.20/.0 -geometry 120x47+0+0 -e /usr/bin/ssh moss@swarm.cs.umass.edu', pid 13748
> [727848.311] (pid 13748 stderr) /bin/sh: xterm: command not found

> In the past, .XWinrc names of files such as "xterm"
> worked just fine. Apparently something changed about
> the PATH used, and "xterm" was not being found. When
> I write /usr/bin/xterm, it starts up. You can see the
> first case and the second in the attached log file.
> 
> So, I think xlaunch is ok, but this was a surprising
> difference :-) ...

This is not intentional.

I can't reproduce this, so I'm not quite sure what is causing this.

What I am expecting to happen is that xlaunch is invoked via the start menu
shortcut which it's package creates, which runs bash -l -c xlaunch, which
reads /etc/profile, which sets PATH to include /usr/bin, which should be
inherited by XWin and used when it execs /bin/sh -c 'your xterm command'.

We try to create the login environment as far up the process hierarchy as
possible, rather than starting the processes from the notification area menu
with bash -l -c, as creating the login environment can be expensive.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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/


  parent reply	other threads:[~2012-04-24 11:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11 10:24 Eliot Moss
2012-04-23 13:51 ` Jon TURNEY
2012-04-23 15:04   ` Ken Brown
2012-04-24 11:54     ` Jon TURNEY
2012-04-24 13:27       ` Ken Brown
2012-04-23 16:42   ` Eliot Moss
2012-04-23 16:46     ` Eliot Moss
2012-04-24 11:40     ` Jon TURNEY [this message]
2012-04-24 12:23       ` Eliot Moss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F96911C.30608@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-xfree@cygwin.com \
    --cc=moss@cs.umass.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).