From: Maxime Devos <maximedevos@telenet.be>
To: "Dr. Arne Babenhauserheide" <arne_bab@web.de>, 46532@debbugs.gnu.org
Subject: bug#46532: plantuml in pure environment does not find X11
Date: Mon, 15 Feb 2021 16:11:53 +0100 [thread overview]
Message-ID: <952377df529e4b18265dc84fd5367c91bef0a80b.camel@telenet.be> (raw)
In-Reply-To: <87r1lh4hnp.fsf@web.de>
[-- Attachment #1.1: Type: text/plain, Size: 551 bytes --]
On Mon, 2021-02-15 at 13:52 +0100, Dr. Arne Babenhauserheide wrote:
> Dear Guix hackers,
>
> when installing plantuml in a pure environment, it throws an java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
Is the environment variable XAUTHORITY set?
Compare the value inside the environment and outside the environment.
Perhaps "XAUTHORITY" should be added to %precious-variables in
guix/scripts/environment.scm. An untested patch is attached,
I'll test it now.
Greetings,
Maxime.
[-- Attachment #1.2: 0001-scripts-preserve-XAUTHORITY-in-pure-environments.patch --]
[-- Type: text/x-patch, Size: 951 bytes --]
From 7eac4f5a427fb094865ece58c3509606264884b0 Mon Sep 17 00:00:00 2001
From: Maxime Devos <maximedevos@telenet.be>
Date: Mon, 15 Feb 2021 16:07:37 +0100
Subject: [PATCH] scripts: preserve XAUTHORITY in pure environments
(XXX untested)
Fixes: <https://issues.guix.gnu.org/46532>
* guix/scripts/environment.scm
(%precious-variables): add 'XAUTHORITY'
---
guix/scripts/environment.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index f4d12f89bf..656294d29d 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -53,7 +53,7 @@
;; Protect some env vars from purification. Borrowed from nix-shell.
(define %precious-variables
- '("HOME" "USER" "LOGNAME" "DISPLAY" "TERM" "TZ" "PAGER"))
+ '("HOME" "USER" "LOGNAME" "XAUTHORITY" "DISPLAY" "TERM" "TZ" "PAGER"))
(define %default-shell
(or (getenv "SHELL") "/bin/sh"))
--
2.30.0
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
next prev parent reply other threads:[~2021-02-15 15:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-15 12:52 bug#46532: plantuml in pure environment does not find X11 Dr. Arne Babenhauserheide
2021-02-15 15:11 ` Maxime Devos [this message]
2021-02-15 15:18 ` Maxime Devos via web
2021-02-16 9:32 ` Efraim Flashner
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=952377df529e4b18265dc84fd5367c91bef0a80b.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=46532@debbugs.gnu.org \
--cc=arne_bab@web.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/guix.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).