18 lines
627 B
Diff
18 lines
627 B
Diff
Source: maxice8
|
|
Upstream: to be upstreamed
|
|
Reason: fixes running it with POSIX shells
|
|
|
|
--- src/profile.sh
|
|
+++ src/profile.sh
|
|
@@ -1,8 +1,8 @@
|
|
# To avoid potential situation where cdm(1) crashes on every TTY, here we
|
|
# default to execute cdm(1) on tty1 only, and leave other TTYs untouched.
|
|
-if [[ "$(tty)" == '/dev/tty1' ]]; then
|
|
- [[ -n "$CDM_SPAWN" ]] && return
|
|
+if [ "$(tty)" = '/dev/tty1' ]; then
|
|
+ [ -n "$CDM_SPAWN" ] && return
|
|
# Avoid executing cdm(1) when X11 has already been started.
|
|
- [[ -z "$DISPLAY$SSH_TTY$(pgrep xinit)" ]] && exec cdm
|
|
+ [ -z "$DISPLAY$SSH_TTY$(pgrep xinit)" ] && exec cdm
|
|
fi
|
|
|