delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/18/07:35:59

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 18 Aug 2010 13:35:41 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Postinstall for mintty fails when installing "just for me"
Message-ID: <20100818113541.GT11340@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0105D5C1E0353146B1B222348B0411A20945256668 AT NIHMLBX02 DOT nih DOT gov> <AANLkTinZ+a6w71LKGUvoytvJBNONeC6kYMweTjCUXN-R AT mail DOT gmail DOT com> <20100817084858 DOT GA16404 AT calimero DOT vinschen DOT de> <0105D5C1E0353146B1B222348B0411A2094525666F AT NIHMLBX02 DOT nih DOT gov> <20100818084323 DOT GN11340 AT calimero DOT vinschen DOT de> <AANLkTimQ1t1KVxEFVpyDBS3_uoxYwhoAqp4Ln6bTrJmP AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTimQ1t1KVxEFVpyDBS3_uoxYwhoAqp4Ln6bTrJmP@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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

On Aug 18 12:24, Andy Koppe wrote:
> On 18 August 2010 09:43, Corinna Vinschen wrote:
> > Andy, to workaround this, you *could* create a user mount first which
> > has no "noacl", then use the user mount to check permissions, and
> > eventually umount again.  Like this:
> >
> >  PROGS=/tmp/.mintty-postinstall-$$
> >  mount -f "`cygpath -APm`" $PROGS
> >  if [ -w "$PROGS" ]; then
> >    [...]
> >  else
> >    [...]
> >  fi
> >  umount $PROGS
> 
> Hmm, I'm a bit afraid that might find creative new ways of going wrong. ;)

The only way that could go wrong is, if the user already has 30 mount
points, since that's the current maximum nuber of allowed mounts.

> I think I'll go with your previous suggestion of just going ahead and
> trying to create the 'All Users' shortcut and falling back to the
> user's start menu if that fails.
> 
> Although, perhaps there's a way to tell from $CYGWINROOT whether we're
> dealing with an install for all users or "just me"?

No, but I don't think it would hurt to enhance setup.exe, either by
adding arguments to postinstall/preremove scripts, or by adding an
environment variable like $CYGWIN_AUDIENCE with the values "all_user" or
"just_me".


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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