
Without this, sxmo_open.sh and so sxmo_files.sh fails to setup the correct window titles for terminal desktop programs Signed-off-by: Willow Barraco <contact@willowbarraco.fr> Signed-off-by: Anjandev Momi <anjan@momi.ca>
33 lines
618 B
Bash
Executable File
33 lines
618 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
# Copyright 2022 Sxmo Contributors
|
|
# shellcheck disable=SC2086
|
|
|
|
if [ -z "$*" ]; then
|
|
set -- $SHELL
|
|
fi
|
|
|
|
if [ -z "$TERMNAME" ]; then
|
|
TERMNAME="$*"
|
|
fi
|
|
|
|
case "$SXMO_TERMINAL" in
|
|
"st"*)
|
|
set -- $SXMO_TERMINAL -T "$TERMNAME" -e "$@"
|
|
;;
|
|
"foot"*)
|
|
set -- $SXMO_TERMINAL -T "$TERMNAME" "$@"
|
|
;;
|
|
"vte-2.91"*)
|
|
set -- ${SXMO_TERMINAL% --} --title "$TERMNAME" -- "$@"
|
|
;;
|
|
"alacritty"*)
|
|
set -- $SXMO_TERMINAL -T "$TERMNAME" -e "$@"
|
|
;;
|
|
*)
|
|
printf "%s: '%s'\n" "Not implemented for SXMO_TERMINAL" "$SXMO_TERMINAL" >&2
|
|
set -- $SXMO_TERMINAL "$@"
|
|
esac
|
|
|
|
exec "$@"
|