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

Fix SHELL using absolute path and disable duplicate profile inclusion #1397

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eugenesan
Copy link

@eugenesan eugenesan commented May 16, 2024

This v2 of the PR.

In previous version I assumed that the issue was absolute path
in SHELL variabe. Leaving only the basename eliminated the hanging on start
but subshell still didn't work.
After doing additional testing I figured that that wasn't the issue.

The issue of broekn shells seems to be related to duplicate inclusion of distrobox hooks
when profile.d available.
While provided patch works a more comprehensive solution might be required to cover all cases.

In general we should inject hooks only once (first start or creation).
Since injecting on every start prevents customization of the container by the user
and can make it very difficult to identify shell/profile related issues (ask me how I know ;-))

This v2 of the PR.

In previous version I assumed that the issue was absolute path
in SHELL variabe. Leaving only the basename eliminated the hanging on start
but subshell still didn't work.
After doing additional testing I figured that that wasn't the issue.

The issue of broekn shells seems to be related to duplicate inclusion of distrobox hooks
when profile.d available.
While provided patch works a more comprehensive solution might be required to cover all cases.

In general we should inject hooks only once (first start or creation).
Since injecting on every start prevents customization of the container by the user
and can make it very difficult to identify shell/profile related issues (ask me how I know ;-))
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 this pull request may close these issues.

None yet

1 participant