Conversation
Create /etc/static/shells before than /etc/shells, because /etc/shells ls linkd etc/static/shells. when use nixos is default has't /etc/static/shells
|
Started test build 61106 |
|
Build 61106 successful |
|
/merge |
|
Started test build 64664 |
|
Build 64664 successful |
|
Started test build 66309 |
|
Build 66309 successful |
|
Is there any reason this isn't merged yet? |
|
Started test build 85191 |
|
Build 85191 successful |
|
Started test build 86144 |
|
Build 86144 successful |
|
Started test build 86530 |
|
Build 86530 successful |
|
Started test build 86532 |
|
Build 86532 successful |
On NixOS, the host's /etc/shells is itself a symlink to /etc/static/shells. When this manifest's own /etc/shells is symlinked to /var/run/host/etc/shells, resolving that second hop fails with ENOENT: absolute symlink targets resolve against the sandbox's own root, not /var/run/host, and the sandbox has no /etc/static/shells. Mirroring the existing /etc/shells symlink pattern for /etc/static/shells fixes it, letting VS Code's shell-profile detection work again. Cherry-picked from flathub#428, using the fix a reviewer suggested there (a conditional symlink to the host's real file) instead of the PR's own approach (an unconditional hardcoded sh/bash fallback for every user, NixOS or not), which is why that PR was never merged despite being open since 2023. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Create /etc/static/shells before than /etc/shells, because /etc/shells ls linkd etc/static/shells.
when use nixos is default has't /etc/static/shells
this error cause it not to take effect
"terminal.integrated.defaultProfile.linux": "bash",#227