unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: t@fullmeta.me
To: help-guix@gnu.org
Subject: Emacs inside container: preserved DISPLAY unavailable etc
Date: Tue, 04 Jan 2022 12:29:13 +0000	[thread overview]
Message-ID: <87fsq3k6g4.fsf@fastmail.com> (raw)

Hi guix.

Straigt out of manual:

--------------------

$ guix shell --container --no-cwd --network emacs-next 
--expose=$HOME/.emacs.d --preserve='^DISPLAY$' -- emacs

No protocol specified
Display :1 unavailable, simulating -nw
Please set the environment variable TERM; see 'tset'.

--------------------

Why? What's going on here? Am I supposed to expose some device or 
smth? This is almost verbatim from Guix manual.

Is there a way to find out which process' reporting that error?

Lets pretend it isn't XXI century and try terminal emacs:

$ guix shell --container --no-cwd --network emacs-next 
--expose=$HOME/.emacs.d --preserve='^TERM$' -- emacs

This starts emacs in the terminal, but fails to load any user 
installed libraries e.g. use-package. Looks like they reside 
inside ~/.guix-profile/share/emacs/site-lisp, so maybe all we need 
to do is again follow the manual and --link-profile

$ guix shell --container --no-cwd --network emacs-next 
--expose=$HOME/.emacs.d --preserve='^TERM$' --link-profile -- 
emacs

That doesn't help but load-path inside emacs has 
$HOME/.guix-profile/share/emacs/site-lisp as first entry, 
hm. However, if we look inside its almost empty. So, I'm not 
entirely sure exactly what --link-profile even achieves. Is there 
some magic in play that "trims" /gnu/store entries only to 
whatever was in manifest (or packages) passed to guix shell 
--container? That would make sense if we are indeed trying to 
isolate things. If so, solution would be to -m manifest.scm with 
all my emacs packages along with emacs-next.

I'd really like to solve the 'display unavailable' above. Could 
anyone help, please?

Thank you


             reply	other threads:[~2022-01-04 16:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-04 12:29 t [this message]
2022-01-04 17:03 ` Emacs inside container: preserved DISPLAY unavailable etc zimoun
2022-01-04 17:11   ` Vlad Kozin
2022-01-05 12:39 ` Daniel Meißner
2022-01-05 13:09   ` t
2022-01-05 14:48     ` Daniel Meißner

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://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87fsq3k6g4.fsf@fastmail.com \
    --to=t@fullmeta.me \
    --cc=help-guix@gnu.org \
    /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.
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).