X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 88B72384B823
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=dgtlrift.com
Authentication-Results: sourceware.org;
 spf=pass smtp.mailfrom=jhanley@dgtlrift.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=dgtlrift-com.20150623.gappssmtp.com; s=20150623;
 h=mime-version:from:date:message-id:subject:to;
 bh=/G8yUoiERdfVVEC3QAq71610kbb/xRw+B2tNvn6Fz7Y=;
 b=I708L+UopvIraihs+iao3RLt4vW7d/QrSUg6sgmLwEhz9V6My2N6E73t7v+5m91HC3
 7C7Sbu6Sw6bRtL4i8P5toUUzp6ej2xJlTRUoy9CjgkEcjymjLsKz5IWJc7Ww+YZQJB28
 ehe4sVADQfzlwgjJtsf0iAKztVNg4GTFujG/f5r2gwTtrtXnbx9U0RmNYjjVMmQbUL42
 8BIX3QkcrugyhSiIm/MhwGSE5yBrD8JjeHlvFRhjyXkhhdYfBIe0qkOhRMsRA8b+B3Ql
 ybX4zoShYOLXdANsKea1CuWPM1nPc28KmcEXNhKvd01YQcF9pYWSSNXl+p32hbW5pTui
 MB+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=/G8yUoiERdfVVEC3QAq71610kbb/xRw+B2tNvn6Fz7Y=;
 b=OLwzU1ce6M+lSxndGA85xG4MFKk5e1a6yPWLoG01mTTmqFUisNIv3HKGGjXFHx/6PL
 A9xI7EtEOuykwcZVwiSSzCu3YtwvKz8F2mXTiAGK4ghtBSvw+Wqm+86kZz/ne/EbqIJX
 e4MvogWrkSnzUFgGBwuA77yz7zTYzsdvuB9qkOp8VJCXpmODOEFDz4qPmoC/zpi7C4+0
 BsKf4K4iWdjBOmdlFpJ1thtrheRNI3IjOMKPwNVBNenoXDGInh+H6d6aFAJbHXq9Iwxa
 WeOUBJH9rm1cYcljM+3mEf9JJ1ubQIMPbC7w58XIPHBir+P2fJI4vaXuKTlEtQ/wL1D8
 Vwyw==
X-Gm-Message-State: AOAM530ecuCcEB/YKBufzChd3UXMn2FlFHfAKRGV38y2VYQ52rpyIRGG
 3FtXJeTm6mPj5RELko0y+78WfisblVv3Avj4Y7eeFl4tkI8D3fPG
X-Google-Smtp-Source: ABdhPJzUzj/QKM1UmHZCG5mbwPKiYmk1RZ4+xxajwbcQOqksztPeZVm9raxF4Xk0XKPnTd+rIO79lAW2wITBmhzwbZs=
X-Received: by 2002:a17:907:75e6:: with SMTP id
 jz6mr23876890ejc.446.1614097727131; 
 Tue, 23 Feb 2021 08:28:47 -0800 (PST)
MIME-Version: 1.0
From: James Hanley <jhanley@dgtlrift.com>
Date: Tue, 23 Feb 2021 11:28:35 -0500
Message-ID: <CAF++6AOFZLNdu9LC7nj+qR2evUd0NiZXQwi88gmknK+c3qU6TA@mail.gmail.com>
Subject: startxdmcp.bat doesn't discover its path
To: cygwin@cygwin.com
X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, HTML_MESSAGE, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,
 SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Inside of the ./bin/startxdmcp.bat arround line 30, the script hard codes
the variable assignment as such:
SET CYGWIN_ROOT=\cygwin
This is a non-issue on 32bit installations of Cygwin, but 64 bit seem to
install the environment into C:\cygwin64 and fails to properly run.
Discovering the prefix or pulling it from another external configuration
would allow the script to run properly.
There may be other examples of this in other scripts/batch-files.
-Jim
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
