delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/31/13:37:41

X-Recipient: archive-cygwin AT delorie DOT 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 AT mail DOT gmail DOT com>
Date: Wed, 31 Mar 2010 19:37:17 +0100
Message-ID: <n2q416096c61003311137u1e90b845k2adffeb35b068e9a@mail.gmail.com>
Subject: Re: Installing mintty in a restricted environment
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
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

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

- Raw text -


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