Repository navigation
Backlog
Labels
bugSomething isn't working
Description
版本 / Version
v0.9.5
最后正常的版本 / Last version that worked
v0.9.3
安装包 / Package
其他:第三方打包或自行编译 / Other packaging or a self-built copy
系统及版本 / OS and version
Arch Linux x86_64, niri 26.04, Wayland
运行方式 / How traffic is taken over
系统代理 / System proxy(桌面 / desktop)
问题出在哪 / Area
VPN、虚拟网卡或系统代理开不了、关不掉 / VPN, TUN or system proxy will not turn on or off
能否稳定复现 / Reproducible
有时会 / Sometimes
复现步骤 / Steps to reproduce
- 在 Linux 上启动 FlClash。
- 保持系统代理开启、“虚拟网卡 / TUN”关闭, 启动代理。
- 在终端执行:
gsettings get org.gnome.system.proxy mode,返回'none'。 - FlClash 日志出现:
update system proxy failed,而上述命令仍返回 'none'。此时,使用系统代理的应用无法正常使用系统代理。 - 暂停后再次启动,可能恢复正常。如单次没有复现,可重复启动/暂停,或重新启动应用。
补充:
- 在FlClash启动前运行
gsettings monitor org.gnome.system.proxy mode,或使用记录 gsettings 调用的包装脚本,可能影响复现结果。
期望结果 / Expected behavior
启用系统代理后,命令gsettings get org.gnome.system.proxy mode输出为 manual。
Rust 创建的系统代理配置子进程,其退出状态应由对应的等待者可靠取得;不应因另一个运行时先回收了子进程而误判执行失败。
实际结果 / Actual behavior
FlClash 的“系统代理”开关为开启,代理核心也已启动,
但命令返回系统代理模式仍为 none,同时日志出现update system proxy failed。
在FlClash v0.9.5中捕获到:
SPAWN parent=17559 tid=17665 child=17772 gsettings set org.gnome.system.proxy.http port 17897
caller=/usr/lib/flclash/lib/librust_api.so pid=17559 tid=17665 waitpid target=17772 ret=-1 errno=10 status=0
caller=/usr/lib/flclash/lib/libflutter_linux_gtk.so pid=17559 tid=17705 wait ANY ret=17772 errno=0 status=0
Rust 创建 gsettings 子进程 17772;Flutter 的 wait() 收到它的成功状态 0;Rust 的 waitpid(17772) 返回 -1 / errno=10 (ECHILD)。
随后应用报update system proxy failed;仍在运行时查询代理模式为none。
启动命令序列在第 3 条 http port 写入后中止,最后的 mode manual 尚未执行。
补充:
- v0.9.3 使用 Dart Process.run 执行系统代理命令。
- v0.9.4 将系统代理命令执行迁移到 Rust Command.status,这也是首次出现该问题的版本。
日志 / Log
[APP] IPC Connected: 17748
[APP] setup ===> null
[APP] update system proxy failed
[APP] connectivityChanged wifi: true vpn: false
相关配置 / Relevant configuration
mixed-port: 17897
tun:
enable: false截图或录屏 / Screenshots or recording
No response
确认 / Checks
- 我已更新到最新版,问题仍然存在。/ I updated to the latest release and the problem is still there.
- 我搜索过已有 issue(包括已关闭的),没有相同的。/ I searched the existing issues, open and closed, and found no duplicate.
- 我已删掉订阅链接、服务器地址、密码和 UUID。/ I removed subscription URLs, server addresses, passwords and UUIDs.
- 这个 issue 只报告一个问题。/ This issue reports one problem.
- 换别的节点,或在别的客户端用同一节点对比过,不是机场或节点本身的问题。/ I compared with another node, or the same node in another client, and it is not a problem of the subscription provider or the node.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity