解决应用运行报错:“Running as root without --no-sandbox is not supported”

报错内容

image-20240719025055819

1
2
3
[root@master clash-GUI]# ./cfw
[0719/024843.845958:FATAL:electron_main_delegate.cc(293)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trace/breakpoint trap(\u5410\u6838)

解决方案:

输入如下命令:

1
[root@master clash-GUI]# ./cfw --no-sandbox

通过禁用 Electron 应用的沙盒功能来解决权限问题。