Timo Aaltonen pushed to branch debian-unstable at X Strike Force / xorg
Commits:
-
2e175516
by Jochen Sprickerhof at 2022-12-06T21:30:28+01:00
1 changed file:
Changes:
| ... | ... | @@ -33,14 +33,8 @@ case $# in |
| 33 | 33 | ;;
|
| 34 | 34 | *)
|
| 35 | 35 | # Specific program was requested.
|
| 36 | - STARTUP_FULL_PATH=$(command -v "${1%% *}" || true)
|
|
| 37 | - if [ -n "$STARTUP_FULL_PATH" ] && [ -e "$STARTUP_FULL_PATH" ]; then
|
|
| 38 | - if [ -x "$STARTUP_FULL_PATH" ]; then
|
|
| 39 | - STARTUP="$1"
|
|
| 40 | - else
|
|
| 41 | - message "unable to launch \"$1\" X session ---" \
|
|
| 42 | - "\"$1\" not executable; falling back to default session."
|
|
| 43 | - fi
|
|
| 36 | + if command -v "$1" >/dev/null; then
|
|
| 37 | + STARTUP="$1"
|
|
| 44 | 38 | else
|
| 45 | 39 | message "unable to launch \"$1\" X session ---" \
|
| 46 | 40 | "\"$1\" not found; falling back to default session."
|