mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
refactor: 更新README文档,添加动画性能问题的待办事项;修改安装管理器以使用完整路径查找pkexec命令;删除未使用的下载管理模拟方法
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user