diff options
-rwxr-xr-x | remoting/host/installer/linux/debian/chrome-remote-desktop.init | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/installer/linux/debian/chrome-remote-desktop.init b/remoting/host/installer/linux/debian/chrome-remote-desktop.init index efcf256..4230632 100755 --- a/remoting/host/installer/linux/debian/chrome-remote-desktop.init +++ b/remoting/host/installer/linux/debian/chrome-remote-desktop.init @@ -56,7 +56,8 @@ run_and_ignore_error() { if [ "$(whoami)" = "$user" ]; then "$exec" "$@" else - USER="$user" LOGNAME="$user" start-stop-daemon \ + shell="$(getent passwd "$user" | cut -d: -f7)" + USER="$user" LOGNAME="$user" SHELL="$shell" start-stop-daemon \ --chuid "$user" --exec "$exec" --start -- "$@" fi } |