unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
Cc: 46532@debbugs.gnu.org
Subject: bug#46532: plantuml in pure environment does not find X11
Date: Tue, 16 Feb 2021 11:32:25 +0200	[thread overview]
Message-ID: <YCuRKQTv/GhzfIUo@3900XT> (raw)
In-Reply-To: <87r1lh4hnp.fsf@web.de>


[-- Attachment #1.1: Type: text/plain, Size: 1869 bytes --]

On Mon, Feb 15, 2021 at 01:52:42PM +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.
> 
> To reproduce:
> 
> $ guix environment --ad-hoc --pure plantuml -- plantumlNo protocol specified
> Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
> 	at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> 	at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
> 	at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:264)
> 	at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
> 	at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
> 	at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1181)
> 	at net.sourceforge.plantuml.FileFormat.<clinit>(FileFormat.java:93)
> 	at net.sourceforge.plantuml.Option.<init>(Option.java:97)
> 	at net.sourceforge.plantuml.Run.main(Run.java:93)
> 
> When I leave out --pure, it works, so I assume that a dependency on X11
> might be missing.
> 

I have the following scriptlet that someone shared for running eolie in
a container. I'm guessing it could be modified to run platuml if needed.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #1.2: guix-container --]
[-- Type: text/plain, Size: 310 bytes --]

guix environment \
--preserve='^DISPLAY$' --container --network \
--expose=/etc/machine-id \
--expose=/etc/ssl/certs/ \
--share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \
--share=/tmp/.X11-unix/=/tmp/.X11-unix/ \
--share=$HOME/.Xauthority=$HOME/.Xauthority \
--ad-hoc eolie nss-certs dbus --  eolie

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2021-02-16  9:34 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
2021-02-15 15:18 ` Maxime Devos via web
2021-02-16  9:32 ` Efraim Flashner [this message]

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=YCuRKQTv/GhzfIUo@3900XT \
    --to=efraim@flashner.co.il \
    --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).