win10 TortoiseSVN 部分图标不显示

时间:2021-01-20 20:22:15

原因:https://msdn.microsoft.com/en-us/library/cc144123(VS.85).aspx

Note   The number of different icon overlay handlers that the system can support is limited by the amount of space available for icon overlays in the system image list. There are currently fifteen slots allotted for icon overlays, some of which are reserved by the system. For this reason, icon overlay handlers should be implemented only if there are no satisfactory alternatives.

意思是说windows总共支持15个图标,它自己占用了一部分。

TortoiseSVN是个老好人,怕自己占用的图标太多,一部分图标没有给优先占用权。

win10 TortoiseSVN 部分图标不显示

知道了原因之后我们来处理 Windows10 平台下的问题:

win10 由于OneDrive占用了5个,所以我的处理办法就是把OneDrive卸载掉,毕竟有墙你懂的。

卸载Onedriver的方法:

1、运行gpedit.msc,进入【计算机配置】-【管理模板】-【windows组件】-【onedrive】

win10 TortoiseSVN 部分图标不显示

2、进入 C:\Users\TQ\AppData\Local\Microsoft (TQ换成你的用户名) 文件夹,删除 OneDrive 文件夹

3、删除导航栏中的OneDrive方法:

运行 regedit 进入注册表,定位到 HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder ,把右侧的Attributes属性的值 f080004d 修改为 f090004d

4、SVN 自身设置修改:

右击 -> TortoiseSVN -> 设置

win10 TortoiseSVN 部分图标不显示

5、修改 Icon 注册表部分,regedit 进入注册表

win10 TortoiseSVN 部分图标不显示

win10 TortoiseSVN 部分图标不显示

除上述红色部分保留,其它项都删除。OneDrive删除需要修改权限后删除,不然提示无法删除。(更改项所属拥有者)

最后重启,就可以坚决所有问题了。