-
Notifications
You must be signed in to change notification settings - Fork 14k
Description
操作系统和版本
macOS (Apple Silicon / Arm64) Monterey 12.7.6
预期情况
macOS 顶部状态栏(Tray Icon)应正常显示 v2rayN 的 Logo,或者显示符合 macOS 规范的透明背景单色图标。
实际情况
图标显示为一个纯白色的实心圆点(俗称“白月亮”)。 这是 macOS Template Image 渲染机制导致的常见问题,通常是因为图标没有处理好透明背景,或者框架默认将其视为 Template 渲染。
复现方法
在 macOS (M系列芯片) 环境下使用 .NET 8 SDK 编译项目:dotnet publish v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r osx-arm64 --self-contained
运行生成的应用。
观察顶部菜单栏图标。
软件日志
2026-01-08 20:42:49.2053-INFO v2rayN start up | v2rayN - V7.16.9 - Arm64 | /Users/lynn/Library/Application Support/v2rayN | /Applications/v2rayN.app/Contents/MacOS/v2rayN | Unix 12.7.6
2026-01-08 20:42:50.1926-INFO Successfully set the file execution permission, /Applications/v2rayN.app/Contents/MacOS/AmazTool
2026-01-08 20:42:50.1926-INFO Successfully set the file execution permission, /Users/lynn/Library/Application Support/v2rayN/bin/xray/xray
2026-01-08 20:42:50.1930-INFO Successfully set the file execution permission, /Users/lynn/Library/Application Support/v2rayN/bin/mihomo/mihomo
2026-01-08 20:42:50.1930-INFO Successfully set the file execution permission, /Users/lynn/Library/Application Support/v2rayN/bin/sing_box/sing-box
2026-01-08 20:42:50.1942-INFO Setup Scheduled Tasks
2026-01-08 21:53:55.8377-INFO Successfully set the file execution permission, /Users/lynn/Library/Application Support/v2rayN/binConfigs/proxy_set_osx_sh.sh
2026-01-08 22:03:40.3482-DEBUG GetCliWrapOutput,Command execution failed, see the inner exception for details.
Standard error:
/bin/bash: fc-list: command not found
2026-01-08 22:03:40.3613-DEBUG at CliWrap.Buffered.BufferedCommandExtensions.<>c__DisplayClass1_0.<b__0>d.MoveNext() in /_/CliWrap/Buffered/BufferedCommandExtensions.cs:line 66
--- End of stack trace from previous location ---
at ServiceLib.Common.Utils.GetCliWrapOutput(String filePath, IEnumerable`1 args) in /Users/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Common/Utils.cs:line 780
2026-01-08 22:03:40.3613-ERROR CliWrap.Exceptions.CommandExecutionException: Command execution failed because the underlying process (bash#2355) returned a non-zero exit code (127).
Command:
/bin/bash -c "fc-list : family"
You can suppress this validation by calling WithValidation(CommandResultValidation.None) on the command.
内核日志
界面渲染问题,无相关错误日志。
额外信息
我尝试通过修改源码修复此问题,在 v2rayN.Desktop/App.axaml 的 标签中添加 IsTemplateIcon="False" 属性。
但编译失败,报错如下: Avalonia error AVLN2000: Unable to resolve suitable regular or attached property IsTemplateIcon on type Avalonia.Controls:Avalonia.Controls.TrayIcon
我确认已更新至最新版本
- 是
我确认已查询历史issues
- 是
我确认系统版本是受支持的
- 是