From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68160: 29.1; Windows installer: add Emacs bin directory to PATH Date: Sun, 31 Dec 2023 09:29:46 +0200 Message-ID: <83il4e3k45.fsf@gnu.org> References: <20602-1703980796-86809@sneakemail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="311"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68160@debbugs.gnu.org To: "Michael Hoffman" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 31 08:31:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rJqI1-000ASK-3e for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Dec 2023 08:31:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJqHp-0004US-2b; Sun, 31 Dec 2023 02:31:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJqHl-0004Sc-O7 for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 02:31:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJqHl-000555-4e for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 02:31:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJqHm-0005F4-2V for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 02:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Dec 2023 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68160 X-GNU-PR-Package: emacs Original-Received: via spool by 68160-submit@debbugs.gnu.org id=B68160.170400780212541 (code B ref 68160); Sun, 31 Dec 2023 07:31:02 +0000 Original-Received: (at 68160) by debbugs.gnu.org; 31 Dec 2023 07:30:02 +0000 Original-Received: from localhost ([127.0.0.1]:45569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJqGn-0003G1-8u for submit@debbugs.gnu.org; Sun, 31 Dec 2023 02:30:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJqGl-0003FV-DX for 68160@debbugs.gnu.org; Sun, 31 Dec 2023 02:29:59 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJqGf-0004k7-0H; Sun, 31 Dec 2023 02:29:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=P42AVfzv/nflWVf3UQMp7sMCgnV7mjImXhIDiSw2J3A=; b=cBZXv17Zn0Yd /yDhyMx+mawqrrM6zOZsc0xWVZ89d+A1HGeIzNzE7yTTzIfso9yRBytRiLCCeOBPp6QHi6CSFtYN/ dB0twYyXKDDM0kD+ZTyFOIfusvfma2aqxB7xIeSXrNe7HrkuuQmxllppgF0tMJ0BTsLxB7cQ29A3B g5SQr/FDuECqUo0vVrQsCnY5EdCYGqQyOLV7rqdx14k4ve0nu+Zh0Zc5PKseCf3wEv4/LTnFhZVu+ F7rQt1WkE4ii0L/1sqRGh6gr9T9qk8FIDPiv98M1sX4tMQEDObqdiKMOLh4s3+ibVtA9jjGden+QQ 2TODdi50fA35w42LrXfnYQ==; In-Reply-To: <20602-1703980796-86809@sneakemail.com> (emacs-hoffman@snkmail.com) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277132 Archived-At: > Date: Sat, 30 Dec 2023 23:59:55 +0000 > From: "Michael Hoffman" > > Could the Windows installer add $INSTDIR\emacs-${VERSION_BRANCH}\bin to > PATH? > > I've started installing Emacs on Windows via WinGet, which is very nice, > and so much works out of the box, but Emacs commands are not added to > PATH like they are with Chocolatey. Currently, WinGet does not support > adding to PATH for packages with an installer, like Emacs. > > If not, would it be possible to add an option to the installer to do > this? A WinGet package could include that as a custom installer option > . This is up to the person who maintains the Windows install kit for Emacs, but IMO this should be an optional feature. On many Windows systems, changing the environment variables is a privileged operation, dictated by policy, and will be rejected. Moreover, modern Windows systems maintain two lists of Path values: one for the current user and another that is system-wide, and there are various limitations about changing each one. When I install software via an installer, I generally don't want it to modify my PATH, because those installers have no idea how I manage my PATH. For starters, should the Emacs's bin directory be prepended or appended to the existing PATH value? That is not a trivial question to answer, since the Emacs installer comes with DLLs and executables other than Emacs, and those might interfere with other software installed on the system. There be dragons! OTOH, manually adding the bin directory to your PATH, if you have that privilege, is easy enough.