一定程度修复图标问题

This commit is contained in:
2023-06-26 09:06:58 +08:00
parent 112d8ba5c6
commit 5707007c7a
3 changed files with 14 additions and 1 deletions

View File

@@ -4,6 +4,11 @@ chrootEnvPath=/opt/new-system-env
# echo 请使用 root 权限运行
# exit 1
#fi
echo aa > /tmp/env-$USER.txt
if [[ ! -f $chrootEnvPath/tmp/env-$USER.txt ]]; then
echo 未挂载目录,立即挂载
pkexec gx-env-mount-root
fi
command="$@"
#echo $command
pkexec env DISPLAY=$DISPLAY chroot $chrootEnvPath sudo -u $USER bash -c "$command"