diff --git a/Help/shell/run_daemon.sh b/Help/shell/run_daemon.sh index 500a13e..dfcb018 100644 --- a/Help/shell/run_daemon.sh +++ b/Help/shell/run_daemon.sh @@ -46,9 +46,11 @@ if [[ $? != 0 ]]; then exit fi uname -r | grep 5.17.3 -if [[ -f /usr/bin/uengine-loading-binder ]] && [[ $? != 0 ]]; then - echo 加载 binder - pkexec /usr/bin/uengine-loading-binder +if [[ ! -f /usr/bin/uengine-loading-binder ]]; then + if [[ $? != 0 ]]; then + echo 加载 binder + pkexec /usr/bin/uengine-loading-binder + fi fi notify-send -i /opt/apps/com.gitee.uengine.runner.spark/files/icon.png "UEngine 服务启动完成" -a uengine-runner bad=0 diff --git a/uengine-installer b/uengine-installer index b169e20..f978263 100755 --- a/uengine-installer +++ b/uengine-installer @@ -135,7 +135,7 @@ if [[ $? != 0 ]]; then fi # 拷贝 binder loader sudo cp "${programPath}/LoadingBinder/load.sh" /usr/bin/uengine-loading-binder -v -sudo chmod +r /usr/bin/uengine-loading-binder +sudo chmod 777 -Rv /usr/bin/uengine-loading-binder sudo cp "${programPath}/pkexec/com.deepin.pkexec.binder.loader.policy" /usr/share/polkit-1/actions/ -v # echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用" # 这里直接运行 run_daemon.sh,运行 launch_uengine.sh 好像不行