在安装Windows 10结束时如果通过微软账 登陆,那默认的用户名有可能会被截断,例如:ettingshausen被截断为ettin,强迫症不能忍受-_-!
记录下解决办法:
络的文章比较多,大体都一个思路。比如博主且听疯吟的重命名 Windows 10 账户文件夹
表面上看起来是修改了,但是像Maven、Android Studio等通过Java获取用户路径,依然有问题,Android甚至不能启动错误大致如下:
Config path ‘C:UsersettinAndroidStudioconfig’ is invalid.
If you have modified the ‘idea.config.path’ property please make sure it is correct,
otherwise please re-install the IDE.
从图中看,错误的原因是C:UsersettinAndroidStudioconfig这个路径不正确。
原因参考Java’s “user.home” is Wrong on Windows,问题是注册表中有个地方这个没有被更正过来。
HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders/Desktop

注册表
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!