From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id E951A3858C52 for ; Tue, 4 Apr 2023 19:46:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E951A3858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id jiPKpvlLAjvm1jmcEpk0zN; Tue, 04 Apr 2023 19:46:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1680637610; bh=SdBx4K6CEBQ/YJRODy+AddqnedM+G4bP7sX0Xd7c/BM=; h=Date:Reply-To:Subject:To:References:Cc:From:In-Reply-To; b=hY7b7UlHzE3rZ5dU3YzkLPtFh8wIgM9sfOBV7Ixx3VhnNS+YLAiyJyOF8NeIpcQOU jcHSYAAvABDgsvHez0Yps+AIP37Dypb3oI+7OPv/jEeYNxKb5cGY1wPtyCyVz2Meoz LrTUx9EspXR0tpMscNYVa/l1F8po/LC29qxJnsdVCaoySzFMDshGwJD29nyIP3SzqS dTKWrnhjsde8A4CZsAZAqSHft2FwXwPW/THJUvyBRwcIKE6Z0yVBGchWmNhQlvTG8N Lkr/kGPNJzzMh4B71KQ+vowaZ5s1hwhHT3JELSPWt3CoAOPJZPY4/TDmthjakOyOvb 5dgEkVWuAZQMQ== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id jmcDpO8CiHFsOjmcEpB5YU; Tue, 04 Apr 2023 19:46:50 +0000 X-Authority-Analysis: v=2.4 cv=XZqaca15 c=1 sm=1 tr=0 ts=642c7eaa a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=daUBqIKCqRiNkvBL:21 a=IkcTkHD0fZMA:10 a=zs-GBwa-pOLrpf8Lu1IA:9 a=QEXdDO2ut3YA:10 a=wp1TVmfXWAOP7OSarnb1:22 Message-ID: Date: Tue, 4 Apr 2023 13:46:49 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Reply-To: cygwin@cygwin.com Subject: Re: Mintty terminal crashes after changing the default home via nsswitch.conf and launch in a new profile in Windows 11 Content-Language: en-CA To: cygwin@cygwin.com References: Cc: Yuta SUZUKI From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfPNyf9ZQwSGYBlyO11nlq97Ch0yJH+8KbtuXuRd1VRdHoDf4wIzxGwlgNA48xv3FT14L0nlMn9qTdckawULrLqYjeJRHzqyCgVtXnPzrPAkiGZujyDwq wXCezVd2O9IXkORESffy8ppy77b0dXv1iO8Qianu9uvK1hylgcb3TLvBpk2S1BR5yq1b7TgP6MgJBC1jIGKn4NvsWfzy+le7b/+K0sqzNt4NoNHqTso+g9TI X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-04-04 09:13, Yuta SUZUKI via Cygwin wrote: > I am recently setting up the computer room of my faculty > and then encountered the following issue: > Short description: > Change the default home directory via > /etc/nsswitch.conf > and make a new Windows user. > Login to the new user (and do not logout) and launch cygwin. > After opening another application's window, e.g. Explorer, > and try to switch the focus between the cygwin window and the other window. > After once or twice of switch, switching is not smooth > and both the cygwin and the other application seem freezing. > (Still we can launch powershell to restart the machine.) > Procedure to reproduce the issue: > 1. Login as an administrator. > 2. Install cygwin with the default configuration. > 3. In C:\cygwin64\etc\nssswitch.conf, replace > # db_home: /home/%U > to > db_home: /%H/cygwin When you change this field from the default, it is up to you to understand and support the setting. This setting example is only a suggestion, not meant to be used verbatim, and means that, for each Windows account at setup or login, under the user's Windows home directory, you will create a literal "cygwin" subdirectory, to be mounted by Cygwin at the user's Cygwin "login" as the user's Cygwin home directory /home/$USER. Cygwin startup is probably waiting for an automounter to provide the directory here, just as if this were a Samba, NFS, or Unix network mount, or a Windows remote profile mount set up under {$USERPROFILE,$HOMEDRIVE$HOMEPATH}/AppData/Remote/. Given the use of "cygwin" as a schema also here, this is possibly a poor example, which could be better documented. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry