X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: Window shortcut to launch a Mintty login bash on a given directory Date: Sat, 31 Jul 2010 15:45:08 +0200 Message-ID: <1299EF3181B10F479D85C328013285240331C4C9@THEZE.intra.cea.fr> From: "JOHNER Jean 066030" To: Cc: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 29 July 2010 08:49, Andy Koppe wrote: >> I also tried to add >> >> C:\cygwin\home\User_name\foobar >> >> in the "Start in" box of the windows shortcut. With no effect. > That was the right idea. The reason it didn't work is that > /etc/profile changes back to your home directory, unless the variable > CHERE_INVOKING (used by the 'chere' package) is set. > Hence you could get it to work by changing the shortcut target to this: > C:\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=3D1 /bin/bash --login Thank you Andy, The last problem is that the window title, for the "My documents/foobar" directory becomes: /cygdrive/d/Documents and settings/User_name/My documents/foobar which iconifies to "/cygdrive/d/Docu...", the latter indication being the same for all directories. I tried: C:\cygwin\bin\mintty.exe -t foobar -e /bin/env CHERE_INVOKING=3D1 /bin/bash --login to get the "foobar" window title, but at the end the complete above title comes back again. Best regards. Jean Johner PS: same problem when installing chere with chere -ia -s bash -t mintty -- 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