From 5489cd9bde74cbe5df7a418e1d58d2d67f71e066 Mon Sep 17 00:00:00 2001 From: HKalbasi <45197576+HKalbasi@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:49:15 +0330 Subject: [PATCH] Update login-inner.nix --- modules/environment/login/login-inner.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/environment/login/login-inner.nix b/modules/environment/login/login-inner.nix index cb929ddb..53d9f322 100644 --- a/modules/environment/login/login-inner.nix +++ b/modules/environment/login/login-inner.nix @@ -144,6 +144,11 @@ writeText "login-inner" '' usershell="${config.user.shell}" if [ "$#" -gt 0 ]; then # if script is not called from within Nix-on-Droid app exec /usr/bin/env "$@" + elif [ -d "$usershell" ]; then + echo "Cannot execute shell '${config.user.shell}', it is a directory." + echo "Unlike nixos you should point `user.shell` to the exact binary." + echo "Falling back to bash" + exec -l bash elif [ -x "$usershell" ]; then exec -a "-''${usershell##*/}" "$usershell" else