Skip to content

启动时检测 Wine 环境并进行警告#5518

Open
WhatDamon wants to merge 13 commits intoHMCL-dev:mainfrom
WhatDamon:wine-detector
Open

启动时检测 Wine 环境并进行警告#5518
WhatDamon wants to merge 13 commits intoHMCL-dev:mainfrom
WhatDamon:wine-detector

Conversation

@WhatDamon
Copy link
Contributor

@WhatDamon WhatDamon commented Feb 11, 2026

效果:
image

为何?

在 HMCL 官网,横幅提示内容对于一些不清楚自己正在使用什么操作系统的用户可能具有一定的误导性,他们可能会优先下载 EXE 版本的 HMCL。如果用户并没有使用 Windows,恰好系统中已经安装了 Wine,Wine 又已经安装好了 Java,那将对用户体验造成严重影响,此 PR 旨在提示用户

image

提示信息未经过本地化,因为经过测试,Wine 中即便安装了中文字体,弹窗依旧有可能无法正确显示中文使用同时显示双语方案解决

@burningtnt
Copy link
Member

可以在一个页面中同时展示中文警告和英文警告。

@WhatDamon
Copy link
Contributor Author

Wine 中的实际效果:

宿主系统中触发:
截屏2026-02-12 13 07 24

CC @3gf8jv4dv 需检查本地化文本

@WhatDamon WhatDamon requested a review from 3gf8jv4dv February 12, 2026 10:50
Copy link
Contributor

@3gf8jv4dv 3gf8jv4dv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@WhatDamon
Copy link
Contributor Author

改进后的效果,现在可以选择是否继续启动了(图示在宿主系统中触发)

@WhatDamon WhatDamon requested a review from 3gf8jv4dv February 13, 2026 19:41
Copy link
Contributor

@3gf8jv4dv 3gf8jv4dv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一些系统的中文环境下 (如 Ubuntu 系) 使用的字体,会把弯引号渲染为一个汉字的宽度。这时候再在两边加空格,看起来不美观。

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

Successfully merging this pull request may close these issues.

3 participants