Skip to content

terminal: use /bin/sh as the default shell

Alyssa Ross requested to merge qyliss/weston:terminal-shell into main

When trying to get Weston to run on a new system I was building up bit by bit, I encountered a problem: when I started weston-terminal, it would close a split second later. This turned out to be because weston-terminal defaults to trying to spawn /bin/bash, which my busybox-based system didn't have.

I can configure the terminal to use a shell I do have, of course, but I think /bin/sh is a much friendlier default, because it's more likely to exist (POSIX requires it), and will save people just trying to get started with Weston from the confusing experience I had. I think it's better overall that somebody who specifically wants /bin/bash has to configure that (if they even have to — depending on how they're running Weston, $SHELL might already be /bin/bash) than somebody who just wants to see the terminal working debug why it won't launch at all.

I realise there might be a (small) backward compatibility concern here as well, but I hope I've made the case for a friendlier default.

Signed-off-by: Alyssa Ross hi@alyssa.is

Merge request reports