nix-community/nix-on-droid

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

Opened this issue · 6 comments

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}";
}

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

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.

@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

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.