Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selftest failures on ostree + fish #707

Open
grahamc opened this issue Nov 6, 2023 · 0 comments · May be fixed by #711
Open

Selftest failures on ostree + fish #707

grahamc opened this issue Nov 6, 2023 · 0 comments · May be fixed by #711

Comments

@grahamc
Copy link
Member

grahamc commented Nov 6, 2023

On ostree, fish has a configuration directory at /etc/fish/ but its fish is not compiled to read from it -- probably due to a packaging bug:

foo@fedora ~> echo $__fish_vendor_confdirs
/var/home/foo/.local/share/fish/vendor_conf.d /var/home/foo/.local/share/flatpak/exports/share/fish/vendor_conf.d /var/lib/flatpak/exports/share/fish/vendor_conf.d /usr/local/share/fish/vendor_conf.d /usr/share/fish/vendor_conf.d

It is compiled to read from /usr/local/share/fish, but that directory doesn't exist, so we don't choose to write to it.

If we detect the host has fish shell, we should do the extra work to detect if we're on an ostree-based distro and do the right thing. I think this means we create /usr/local/share/fish and write our nix.fish file to /usr/local/share/fish/vendor_conf.d/.

This will resolve our highest source of installation errors (SelfTest("ShellFailed("fish")").

@grahamc grahamc linked a pull request Nov 8, 2023 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant