9fans/plan9port

imageinit: can't open font

blakemcbride opened this issue · 1 comments

I am running Plan9port on Fedora 35.

Running acme as root works fine. However, when I try to use it as a regular user, I get:

$ acme
imageinit: can't open font /mnt/font/Courier/12a/font: �
acme: can't open display: �
$

Sure appreciate any help.

Thanks!

$ grep -n "can't open font" /opt/plan9/src/libdraw/init.c
73:             fprint(2, "imageinit: can't open font %s: %r\n", fontname);
$ grep -n "can't open display" /opt/plan9/src/cmd/acme/acme.c
162:            fprint(2, "acme: can't open display: %r\n");
167:            fprint(2, "acme: can't open display: %r\n");
$ 

Have you incorrect permissions on the files?

$ tree --noreport -L 1 -d /opt/plan9
/opt/plan9
|-- acid
|-- bin
|-- dict
|-- dist
|-- face
|-- font
|-- include
|-- lib
|-- lp
|-- mac
|-- mail
|-- man
|-- ndb
|-- news
|-- plumb
|-- postscript
|-- proto
|-- sky
|-- src
|-- tmac
|-- troff
`-- unix
$