delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/31/09:45:22

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
MIME-Version: 1.0
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" <Jean DOT JOHNER AT cea DOT fr>
To: <cygwin AT cygwin DOT com>
Cc: <andy DOT koppe AT gmail DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 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

- Raw text -


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