GNU bug report logs - #71267
[TRAMP] Tramp/Emacs does not pick up PATH from login shell via Distrobox method

Previous Next

Package: emacs;

Reported by: Alexis Purslane <alexispurslane <at> pm.me>

Date: Thu, 30 May 2024 00:17:02 UTC

Severity: normal

Tags: notabug

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 71267 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alexis Purslane via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>
Cc: Alexis Purslane <alexispurslane <at> pm.me>, 71267 <at> debbugs.gnu.org
Subject: Re: bug#71267: [TRAMP] Tramp/Emacs does not pick up PATH from login
 shell via Distrobox method
Date: Thu, 30 May 2024 12:22:39 +0200
Alexis Purslane via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

Hi Alexis,

> 1. Start emacs -Q.
> 2. Evaluate the forms
>     (require 'tramp)
>     (load "path/to/tramp-2.7.1/tramp-container.el")
>     (tramp-enable-distrobox-method)
> 3. `cd' to an `/distrobox:' location via eshell, or use find-file to
>     open a file through a distrobox so that your default-directory is in
>     it.
> 4. Observe the PATH according to Emacs
> 5. Then run sh -l in that distrobox (either by doing distrobox enter on
>     an external shell, or via eshell). Obeserve the PATH according to
>     distrobox.
> 6. Check the /etc/profile* files inside the distrobox to see which is
>     correct.

See the Tramp manual at (info "(tramp) Remote programs")

You need to add tramp-own-remote-path to tramp-remote-path as described there.

Best regards, Michael.




This bug report was last modified 358 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.