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

The exit command does not work if the user's default shell is zsh #394

Open
MOIS3Y opened this issue Jul 26, 2024 · 6 comments
Open

The exit command does not work if the user's default shell is zsh #394

MOIS3Y opened this issue Jul 26, 2024 · 6 comments

Comments

@MOIS3Y
Copy link

MOIS3Y commented Jul 26, 2024

The exit command does not work if the user's default shell is zsh
The process just hangs, to close the tab or stop the application you need to call the context menu and click kill the process

Is there a way to figure out what the problem is?
I'm using the home manager module (but not sure if this could be the problem)

{ pkgs, lib, ... }: {
  user.shell = "${lib.getExe pkgs.zsh}";
}
@t184256
Copy link
Collaborator

t184256 commented Jul 26, 2024 via email

@MOIS3Y
Copy link
Author

MOIS3Y commented Jul 26, 2024

does it have leftover background processes? I remember having something like that

Thanks for the quick response!
I don’t think so, this is what the list of processes looks like after the first launch of Nix-on-droid

Screenshot

There are lf and ssh-agent processes there, but the problem was relevant earlier when there were no packages other than the zsh module

@t184256
Copy link
Collaborator

t184256 commented Jul 26, 2024 via email

@Gerschtli
Copy link
Collaborator

You could try killing the processes that run in the Background to see which one causes the issue. For me ssh-agent was the problem.

@MOIS3Y
Copy link
Author

MOIS3Y commented Jul 27, 2024

@t184256 yes you are right, after rebuild new generation without ssh-agent (omz plugin) the exit cmd works.
I think that the issue can be closed, I will look for a way to start the agent manually, thanks for the help

@amalgame21
Copy link

It happens to me when it is still connected from PC to nix-on-droid via ssh.
I have to both CTRL-C the sshd in nix-on-droid and disconnect from PC to make it exit properly, just CTRL-C sshd won't make PC disconnect.

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

No branches or pull requests

4 participants