Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appimage core lost permissions #6777

Closed
q962 opened this issue Feb 22, 2025 · 11 comments
Closed

appimage core lost permissions #6777

q962 opened this issue Feb 22, 2025 · 11 comments

Comments

@q962
Copy link

q962 commented Feb 22, 2025

ErrorStartingProcess, /home/demo/.local/share/v2rayN/bin/xray/xray, /home/demo/.local/share/v2rayN/guiConfigs, Permission denied

sudo chmod 0755 "${PackagePath}/AppDir/opt/v2rayN/v2rayN"

sudo chmod 0755 "${PackagePath}/AppDir/opt/v2rayN/bin/mihomo/mihomo"
sudo chmod 0755 "${PackagePath}/AppDir/opt/v2rayN/bin/sing_box/sing-box"
sudo chmod 0755 "${PackagePath}/AppDir/opt/v2rayN/bin/xray/xray"
@2dust
Copy link
Owner

2dust commented Feb 23, 2025

运行时会使用此位置的Core, /home/demo/.local/share/v2rayN/bin/xray/xray
这个位置的Core 在运行时会自动给予权限,请关闭 v2rayN 重启试一试?

@q962
Copy link
Author

q962 commented Feb 23, 2025

不会。如果自动赋予权限就不会报错。

@2dust
Copy link
Owner

2dust commented Feb 24, 2025

没有明白你回复的意思?
请问重启几次 v2rayN 后还是一样有权限问题吗?

@q962
Copy link
Author

q962 commented Feb 24, 2025

这个位置的Core 在运行时会自动给予权限

不会。如果自动赋予权限就不会报错。

@q962
Copy link
Author

q962 commented Feb 24, 2025

请问重启几次 v2rayN 后还是一样有权限问题吗?

是的。你编写了赋予权限的代码?

@2dust
Copy link
Owner

2dust commented Feb 24, 2025

foreach (var name in it.CoreExes)

在启动时,会遍历所有 Core ,赋予权限。
你可以测试下,先把 Core 的执行权限去掉,然后启动 v2rayN 后查看下权限是否有赋予?

@q962
Copy link
Author

q962 commented Feb 24, 2025

我都测试好几遍了。

并没有。

你也可以在本地测试

@2dust
Copy link
Owner

2dust commented Feb 24, 2025

在开发和测试设备上都是测试过的;可能你的设备环境无法正常运行。
你查下你的 guiLogs 中,是否有提示设置权限失败的信息?
如果都没有,暂时也没有解决的办法,你手动赋予权限运行吧。

@q962
Copy link
Author

q962 commented Feb 24, 2025

解决的办法不是给你了吗?打包前赋予权限。

看了下日志...

Command:
/bin/bash -c "chmod +x /home/demo/.local/share/v2rayN/bin/mihomo/mihomo"

You can suppress this validation by calling `WithValidation(CommandResultValidation.None)` on the command.
2025-02-24 16:41:34.6802-DEBUG GetCliWrapOutput,Command execution failed, see the inner exception for details.

Standard error:
/bin/bash: /tmp/.mount_v2rayNCeCoNp/opt/v2rayN/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /bin/bash)
/bin/bash: /tmp/.mount_v2rayNCeCoNp/opt/v2rayN/libc.so.6: version `GLIBC_2.36' not found (required by /bin/bash)
/bin/bash: /tmp/.mount_v2rayNCeCoNp/opt/v2rayN/libc.so.6: version `GLIBC_2.38' not found (required by /bin/bash)
/bin/bash: /tmp/.mount_v2rayNCeCoNp/opt/v2rayN/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /lib64/libtinfo.so.6)

问题出现在 AppRun 设置的 export LD_LIBRARY_PATH

你打包了不该打包的文件

我不知道其中的缘由。

目前只需要在打包前对文件赋权,使用户能够打开即用。或者移除 libc.so.6 ?

@2dust
Copy link
Owner

2dust commented Feb 24, 2025

知道是打包问题了,等待有人 appimage 打包脚本修复处理

@2dust
Copy link
Owner

2dust commented Feb 28, 2025

@2dust 2dust closed this as completed Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants