X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 	tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <o2w845c0f81003311013ub35d84b1jec5c159f37557789@mail.gmail.com>
References: <o2w845c0f81003311013ub35d84b1jec5c159f37557789@mail.gmail.com>
Date: Wed, 31 Mar 2010 19:37:17 +0100
Received: by 10.239.188.135 with SMTP id p7mr769131hbh.90.1270060637905; Wed,  	31 Mar 2010 11:37:17 -0700 (PDT)
Message-ID: <n2q416096c61003311137u1e90b845k2adffeb35b068e9a@mail.gmail.com>
Subject: Re: Installing mintty in a restricted environment
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Rance Hall wrote:
> I had to check the box on setup that said I was installing for just me
> so that setup wouldnt try to install shortcuts in ALL USERS which it
> does not have the right to do.
>
> mintty did not self-setup correctly under this scenario.
>
> I did not get a mintty icon on my desktop

It doesn't create an icon on the desktop, but it should create a
mintty entry in the All Programs/Cygwin folder in the start menu. Just
copy it to the desktop if you prefer having it there.

> likely because mintty did
> not respect my choice of ALL USERS or "just me" in setup.exe

Actually there is code for this case in the mintty postinstall script.
It works for me, but I don't think it gets an awful lot of use, so
there might well be circumstances where it fails.

> Thanks Jeremy, apparently the problem is the "-" at the end of the
> mintty call.  Thats the beast that tells mintty to read the
> environment files.

Not quite. It tells mintty to invoke the shell, usually bash, as a
so-called login shell. In that case, bash reads different startup
files compared to when it's invoked as non-login shell. See the bash
manual for details.

Andy

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

