From c06c29d22b379a128a9daa0ffbe318c1db6b3886 Mon Sep 17 00:00:00 2001 From: CongTianKong Date: Tue, 1 Aug 2023 21:53:27 +0800 Subject: [PATCH] enhance transhell logic --- scripts/ablrun | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/ablrun b/scripts/ablrun index db25902..9817ab0 100755 --- a/scripts/ablrun +++ b/scripts/ablrun @@ -5,8 +5,12 @@ then source /opt/durapps/transhell/transhell.sh load_transhell else - source /usr/share/ablrun/transhell/ablrun_en_US.transhell - source /usr/share/ablrun/transhell/ablrun_$(echo ${LANG%.*}).transhell + if [ -f "/usr/share/ablrun/transhell/ablrun_${LANG%.*}.transhell" ] + then + source "/usr/share/ablrun/transhell/ablrun_${LANG%.*}.transhell" + else + source /usr/share/ablrun/transhell/ablrun_en_US.transhell + fi fi if [ "$*" = "" ]