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.help Subject: Re: Workshop to save M$ Windows users - help needed Date: Sun, 03 Oct 2021 13:40:28 +0300 Message-ID: <834k9y9ysj.fsf@gnu.org> References: <837deua1sd.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11413"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 03 12:42:00 2021 Return-path: Envelope-to: geh-help-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 1mWywS-0002kO-AT for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 03 Oct 2021 12:42:00 +0200 Original-Received: from localhost ([::1]:58484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWywR-0003fZ-5z for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 03 Oct 2021 06:41:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWyvD-0003fP-DI for help-gnu-emacs@gnu.org; Sun, 03 Oct 2021 06:40:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45146) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWyvD-0002F5-68 for help-gnu-emacs@gnu.org; Sun, 03 Oct 2021 06:40:43 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4727 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWyvC-0004eO-P1 for help-gnu-emacs@gnu.org; Sun, 03 Oct 2021 06:40:43 -0400 In-Reply-To: (message from Eduardo Ochs on Sun, 3 Oct 2021 07:19:16 -0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133521 Archived-At: > From: Eduardo Ochs > Date: Sun, 3 Oct 2021 07:19:16 -0300 > Cc: help-gnu-emacs > > What is a good way for installing wget and a program from > unzipping/untgzipping files? Which un(tg)zipper do you recommend? I > remember vaguely using something called 7z ages ago... Do you really need that? The Windows Explorer can unzip files just fine, and a browser or Emacs itself can be used to fetch files. > Also, what is a good way to make sure that these programs are in the > PATH? If each student can send me their original PATH and the full > paths to these programs I can produce a sexp like this for each one... > > (setenv "PATH" > (concat > "/path/to/wget:" > "/path/to/7z:" > "/home/edrx/bin:/home/edrx/.elan/bin:/home/edrx/.local/bin:/home/edrx/.cabal/bin:/home/edrx/.ghcup/bin:/usr/local/texlive/2021/bin/x86_64-linux:/home/edrx/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:.:/home/edrx/EXPECT:/home/edrx/TCL:/home/edrx/pkg/bin") > ) It's best not to go there at all. Changing PATH from within Emacs is asking for trouble, because the system outside Emacs doesn't know about that, and changing PATH system-wide requires going to system properties and making changes there (which sometimes might mean privileges normal users don't have). Try avoiding that, is my advice.