refactor: 更新README文档,添加动画性能问题的待办事项;修改安装管理器以使用完整路径查找pkexec命令;删除未使用的下载管理模拟方法

This commit is contained in:
Elysia
2026-01-30 21:39:50 +08:00
parent 681780f712
commit fff4a4bd22
3 changed files with 2 additions and 53 deletions

View File

@@ -22,7 +22,7 @@ const checkSuperUserCommand = async (): Promise<string> => {
let superUserCmd = '';
const execAsync = promisify(exec);
if (process.getuid && process.getuid() !== 0) {
const { stdout, stderr } = await execAsync('which pkexec');
const { stdout, stderr } = await execAsync('which /usr/bin/pkexec');
if (stderr) {
logger.error('没有找到 pkexec 命令');
return;