GNU bug report logs -
#53257
Setting TERMINFO_DIRS
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Ludovic Courtès schreef op vr 28-01-2022 om 23:34 [+0100]:
> Hi,
>
> Maxime Devos <maximedevos <at> telenet.be> skribis:
>
> > This patch is about 'foot', so I tried running foot+nano, but that failed because
> > I don't use wayland. Anyway, there are a few options here:
>
> An option we’ve used before, in fact to work around
> <https://issues.guix.gnu.org/22138>, is to define certain variables
> globally; on Guix System, you’ll see this in /etc/profile:
>
> --8<---------------cut here---------------start------------->8---
> # Allow Hunspell-based applications (IceCat, LibreOffice, etc.) to
> # find dictionaries.
> export DICPATH=\
> "$HOME/.guix-profile/share/hunspell\
> :/run/current-system/profile/share/hunspell"
>
> # Allow GStreamer-based applications to find plugins.
> export GST_PLUGIN_PATH=\
> "$HOME/.guix-profile/lib/gstreamer-1.0"
> --8<---------------cut here---------------end--------------->8---
>
> We should probably do the same for ‘TERMINFO_DIRS’.
>
> WDYT?
IIUC, that only works if 'foot' is installed in in the system profile,
and not if it is installed in the user profile. Unlike, say,
'gnome-terminal', 'foot' doesn't seem like something that would be
in the system profile. The variable would need to be added to
$GUIX_PROFILE/etc/profile instead.
... (me notices .guix-profile in the example above) ...
Ok, this could work with things in the user profile, but it's a rather
ad-hoc solution and won't work with "guix shell", so I would prefer
adding it to 'etc/profile'.
One option is to modify 'build-etc/profile' to always add
'TERMINFO_DIRS' (and maybe DICPATH, GUIX_LOCPATH and
SSL_CERT_DIR/FILE?) to the list of search paths.
> (Of course that that doesn’t help on foreign distros, but maybe
> ‘TERMINFO_DIRS’ is already set there?)
I'm currently on Debian+Guix. $TERMINFO_DIRS is not set here.
Even if it was, I doubt you'd find the files for 'foot' in there
unless 'foot' is installed with the foreign distro's installer
-- AFAICT, 'foot' is not present in ncurses' terminfos.
If I do "grep -RF foot /usr/share/terminfo/", I don't find any results.
I do find results for 'kitty' though, which makes it odd that some
previous tests I did with 'kitty' failed ...
Greetings,
Maxime
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 2 years and 361 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.