rubickCenter / rubick

🔧 Electron based open source toolbox, free integration of rich plug-ins. 基于 electron 的开源工具箱,自由集成丰富插件。

Home Page:https://rubickcenter.github.io/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

添加对 windows 设置项的搜索

yllhwa opened this issue · comments

commented

您的功能请求是否与问题相关? 请简单描述.
实现如图所示的设置项索引。

image

请描述一下您想要的解决方案
首先在C:\Windows\ImmersiveControlPanel\Settings路径下存在两个xml文件,AllSystemSettings_{253E530E-387D-4BC2-959D-E6F86122E5F2}.xml(可能存在相同的入口,如SettingsPageNetworkProxySettingsPageNetworkProxy2)和AllSystemSettings_{FDB289F3-FCFC-4702-8015-18926E996EC1}.xml(相同的入口在同一个SearchableContent下,故使用这个更好)。

然后在C:\Windows\SystemResources\Windows.UI.SettingsHandlers-nt\pris找到对应语言的pri文件,使用命令

MakePri.exe dump /if Windows.UI.SettingsAppThreshold.zh-CN.pri /of Windows.UI.SettingsAppThreshold.zh-CN.xml

将其转换为xml文件,可以获取到描述和搜索关键词。

dump出来的示例json如下
https://gist.github.com/yllhwa/74c021934e98e2affc14d27d9caf6097

启动时使用

start-process -FilePath "shell:appsFolder\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" -ArgumentList "page=SettingsPageBatterySaver&group=BatterySaver_LandingPage_SettingsOverview"

添加对windows设置项的搜索,就像utools 的windows设置搜索。

feature mark