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

win11 Settings ->Advanced Settings cannot be opened #3345

Open
moqiu365 opened this issue Feb 19, 2025 · 8 comments · May be fixed by #3483
Open

win11 Settings ->Advanced Settings cannot be opened #3345

moqiu365 opened this issue Feb 19, 2025 · 8 comments · May be fixed by #3483

Comments

@moqiu365
Copy link

moqiu365 commented Feb 19, 2025

Describe the problem

After pulling the code, I tracked the issue and found that due to the default font loading order, the tray icon, Settings ->Advanced Settings cannot be opened

Just move the code from line 113 in the client/ui/cron_ui.go file to line 93, and the problem will be solved

I used the fixed code, but it still reports this error on Win10 with only comments
client.setDefaultFonts()
Later, the management page can only be opened, and I don't know how to fix it

After reviewing the information, I found that the reason is that FYNE does not support the ttc font very well

Because I am not very good at using Git and do not know how to submit the code I have modified, I am raising this issue. Once the issue is resolved, I will close it

The following is the repair process

Image

The following is the console log after the error occurred

Image

Expected behavior

Successful images when running the program after repair

Image

Are you using NetBird Cloud?

Please specify whether you use NetBird Cloud or self-host NetBird's control plane.

NetBird version

netbird version

NetBird status -dA output:

If applicable, add the `netbird status -dA' command output.

Do you face any (non-mobile) client issues?

Please provide the file created by netbird debug for 1m -AS.
We advise reviewing the anonymized files for any remaining PII.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

@moqiu365 moqiu365 changed the title win10-11 Fix Settings ->Advanced Settings cannot be opened win11 Fix Settings ->Advanced Settings cannot be opened Feb 19, 2025
@mlsmaycon
Copy link
Collaborator

@moqiu365 This week, we fixed an issue related to the peer sessions and the settings menu. Can you confirm if you have tested with the most recent code in our main repo and that the problem persists without your proposal?

@moqiu365
Copy link
Author

moqiu365 commented Feb 20, 2025

本周,我们修复了与对等会话和设置菜单相关的问题。您能否确认您是否已经使用我们主存储库中的最新代码进行了测试,并且问题在没有您的提议的情况下仍然存在?

I have deleted the local code, created a new folder, and pulled the latest code. Even after deployment, I still have this problem. Here are my steps

//Clean up the previous cache
go clean -modcache
//Delete the pulled code (delete the entire folder) and re pull it

git clone https://ghproxy.cfd/https://github.com/netbirdio/netbird.git
cd netbird/
go mod tidy
cd client/
go build -x -v -o netbird-ui.exe .\ui\

Then using the administrator to run it, clicking on Settings ->Advanced Settings, the above problem appeared. Strangely, I followed my previous solution and still encountered this problem, only commenting it out
client.setDefaultFonts()
This line of code is required to open advanced settings

Upon further investigation, it was found that the issue was caused by zh CN using ttc format fonts in client \ ui \ font_windows.go, which is not well supported by the fyne framework for ttc format fonts

Many Chinese fonts that come with the Windows system are not allowed for commercial use

Suggest changing the font in zh CN format to
https://github.com/adobe-fonts/source-han-sans/tree/release
This ttf format font avoids commercial disputes,

@moqiu365 moqiu365 changed the title win11 Fix Settings ->Advanced Settings cannot be opened win11 Settings ->Advanced Settings cannot be opened Feb 20, 2025
@moqiu365
Copy link
Author

There is another solution, in
client\ui\font_windows.go
Annotate lines 28, 32, and 33 to use the default font, which will also enable it to open advanced settings normally

Image

@wgetnz
Copy link

wgetnz commented Feb 22, 2025

I have the same problem

@AtaLuZiK
Copy link

same problem +1

1 similar comment
@levindecaro
Copy link

same problem +1

@RoyLi-Pvt
Copy link

0.38 same problem

@lpqoang
Copy link

lpqoang commented Mar 12, 2025

The issue still exists v0.38.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants