在安裝Windows 10結束時如果通過微軟賬號登陸,那默認的用戶名有可能會被截斷,例如:
ettingshausen
被截斷為ettin
,強迫癥不能忍受-_-!
記錄下解決辦法:
網絡的文章比較多,大體都一個思路。比如博主且聽瘋吟的重命名 Windows 10 賬戶文件夾
表面上看起來是修改了,但是像Maven、Android Studio等通過Java獲取用戶路徑,依然有問題,Android甚至不能啟動錯誤大致如下:
Config path ‘C:\Users\ettin\AndroidStudio\config’ is invalid.
If you have modified the ‘idea.config.path’ property please make sure it is correct,
otherwise please re-install the IDE.
從圖中看,錯誤的原因是C:\Users\ettin\AndroidStudio\config
這個路徑不正確。
原因參考Java’s “user.home” is Wrong on Windows,問題是注冊表中有個地方這個沒有被更正過來。
HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders/Desktop
注冊表
這里給簡書點個贊,Markdown插入圖片簡直太爽……