You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing the error message in k9s when I start it in my ghostty terminal application on a Mac. When took a look at the logs I'm seeing the following line appear repeatedly:
When I unset this variable in my ghostty terminal window and re-ran k9s, I did not get the warning about plugin loading failing.
I'm assuming k9s is checking for plugins then in $XDG_DATA_DIR/k9s/plugins but I would think that if it either does not have permission to view that directory (as is the case on my Mac it seems) or the directory does not exist, it should not attempt to load plugins from it... and therefore not produce these warnings. Or is there a different "correct" solution to this? Is the problem on ghostty's side maybe?
The text was updated successfully, but these errors were encountered:
StFS
changed the title
k9s complaining about "Plugins load failed" in ghostty
k9s complaining about "Plugins load failed" in ghostty on a Mac
Apr 1, 2025
@StFS Hum... I specifically set my XDG env vars to avoid these surprises in my shell. Given ghostty is an emulator, I guess I am not surprised that they will set these to some locations. N
Not sure what OS you are using but as a rule it might make sense to explicitly set those...
I'm seeing the error message in k9s when I start it in my ghostty terminal application on a Mac. When took a look at the logs I'm seeing the following line appear repeatedly:
The
/usr/local/share/k9s
directory does not exist and in fact, my user does not have permission on/usr/local/share
at all.After a bit of experimenting, I found that this error does not appear when I start k9s in WezTerm.
Further digging got me to realize that the reason for this was that ghostty is setting the
XDG_DATA_DIRS
environment variable:WezTerm does not do that.
When I unset this variable in my ghostty terminal window and re-ran k9s, I did not get the warning about plugin loading failing.
I'm assuming k9s is checking for plugins then in
$XDG_DATA_DIR/k9s/plugins
but I would think that if it either does not have permission to view that directory (as is the case on my Mac it seems) or the directory does not exist, it should not attempt to load plugins from it... and therefore not produce these warnings. Or is there a different "correct" solution to this? Is the problem on ghostty's side maybe?The text was updated successfully, but these errors were encountered: