commit ee11a09fb0584dc2d083afc7e6f69e407cd4f76e parent 0011a2c3b981157f7decc2eac2c3db4adc04f77d Author: Chris Down <chris@chrisdown.name> Date: Tue, 9 Jun 2020 14:19:34 +0100 Add $DISPLAY check Fixes #131. Diffstat:
M | clipmenud | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/clipmenud b/clipmenud @@ -97,6 +97,7 @@ EOF exit 0 fi +[[ $DISPLAY ]] || die 2 'The X display is unset, is your X server running?' # It's ok that this only applies to the final directory. # shellcheck disable=SC2174