I am trying to call the program groff
from inside a gedit flatpak (external tools plugin).
The flatpak can access the groff binary, but groff
looks for files at /usr/share/groff
, while in flatpak, this path is mapped to /var/run/host/usr/share/groff
.
What is the proper way of accessing a binary like this? Or rather the datadir of a binary like this?
Asked
Active
Viewed 64 times
0

user18130814200115
- 68
- 5
1 Answers
1
Probably the best way is to set environment variables
export GROFF_TMAC_PATH=/var/run/host/usr/share/groff/site.tmac
export GROFF_FONT_PATH=/var/run/host/usr/share/groff/site-font

Ljm Dullaart
- 4,273
- 2
- 14
- 31
-
wow, I have been using groff for over a year and did not know these env variables existed, thanks! – user18130814200115 Mar 29 '22 at 17:35