unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 71267@debbugs.gnu.org
Cc: alexispurslane@pm.me
Subject: 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	[thread overview]
Message-ID: <87mso7r440.fsf@gmx.de> (raw)
In-Reply-To: <87mso86tnv.fsf@pm.me> (Alexis Purslane via's message of "Thu, 30 May 2024 00:16:26 +0000")

Alexis Purslane via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@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.





  reply	other threads:[~2024-05-30 10:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-30  0:16 bug#71267: [TRAMP] Tramp/Emacs does not pick up PATH from login shell via Distrobox method Alexis Purslane via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 10:22 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
     [not found]   ` <GjS8FW_Pw5njQHBxoQLh35jRfhZ-6IMq_OuSuxrMM23KTPTGPsSsVTEKVocTGAQjyCHMoRj5U0FwSBvkp60PnHm37rYFN8V7tbkQw1M9ss8=@pm.me>
2024-05-30 11:38     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mso7r440.fsf@gmx.de \
    --to=bug-gnu-emacs@gnu.org \
    --cc=71267@debbugs.gnu.org \
    --cc=alexispurslane@pm.me \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).