snap: child shells cannot find xterm-ghostty terminfo (terminals database is inaccessible)
#12304
Unanswered
aaron-ang
asked this question in
Issue Triage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When Ghostty is installed via snap on Ubuntu 24.04, some programs running inside Ghostty (e.g. clear) fail with:
terminals database is inaccessibleThe snap ships its own terminfo at
$SNAP/share/terminfo/but the launcher never exportsTERMINFO_DIRS, so ncurses in child shells cannot find it. Ubuntu 24.04 ships ncurses 6.4 which predates the xterm-ghostty entry (added in ncurses 6.5-20241228), so the system terminfo also does not have it.The files exist inside the snap, they are just invisible to child processes:
/snap/ghostty/current/share/terminfo/x/xterm-ghostty/snap/ghostty/current/share/terminfo/g/ghosttyFix proposed: export variable in
snap/local/launcherExpected Behavior
clearworks out of the box after snap install.Actual Behavior
clearfails:terminals database is inaccessibleReproduction Steps
clearGhostty Logs
No response
Ghostty Version
OS Version Information
Ubuntu 24.04.4 LTS (Noble Numbat)
(Linux only) Display Server
X11
(Linux only) Desktop Environment/Window Manager
GNOME 46.0
Minimal Ghostty Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions