popup: use system fonts exclusively
This commit is contained in:
21
run.sh
21
run.sh
@@ -2,22 +2,9 @@
|
||||
|
||||
cd "$(dirname "$0")" || exit 1
|
||||
|
||||
if test "$#" -eq 0; then
|
||||
set --
|
||||
for font in \
|
||||
/usr/share/fonts/noto/NotoColorEmoji.ttf \
|
||||
/usr/share/fonts/TTF/DejaVuSans.ttf \
|
||||
/usr/share/fonts/TTF/Jigmo.ttf \
|
||||
/usr/share/fonts/TTF/Jigmo2.ttf \
|
||||
/usr/share/fonts/noto/NotoSansCJK-Regular.ttc
|
||||
do
|
||||
test "$#" -ge 4 && break
|
||||
test -f "$font" && set -- "$@" "$font"
|
||||
done
|
||||
if test "$#" -eq 0; then
|
||||
echo "run.sh: no default font found; pass a font file" >&2
|
||||
exit 1
|
||||
fi
|
||||
if test "$#" -ne 0; then
|
||||
echo "usage: run.sh" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! test -x ./strans; then
|
||||
@@ -40,7 +27,7 @@ sleep 0.1
|
||||
pkill -KILL -u "$uid" -x strans-xim 2>/dev/null || :
|
||||
pkill -KILL -u "$uid" -x strans 2>/dev/null || :
|
||||
|
||||
./strans map "$@" </dev/null &
|
||||
./strans map </dev/null &
|
||||
strans_pid=$!
|
||||
if test -n "${DISPLAY-}"; then
|
||||
xim/strans-xim </dev/null &
|
||||
|
||||
Reference in New Issue
Block a user