[Bug] 更新后默认工作目录是System32
Open
Nobody has claimed this yet.
question
- Dominant language
- Java
- Stars
- 10.1k
- Forks
- 934
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 82
Description
平台 | Platform
Windows 11 23H2
问题描述 | Problem Description
在3.5.9版本打开时弹出的更新窗口中点击更新,之后会自动下载3.6.11然后打开新版本并删除旧版本。
但是打开的新版本HMCL的工作目录是程序默认的%windir%\system32
此时无法找到游戏文件夹中的.minecraft目录(因为这个用的是相对路径,而当前工作目录是%windir%\system32)
当时我还没意识到这个问题,然后下载了一个新的MC版本,
直到报错才发现这个问题。
重新在游戏目录打开后无此问题,工作目录正常指定为游戏文件夹。
推测为更新时工作目录设置的问题。
启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File
未保留相应的日志
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the update flow from HMCL 3.5.9 to 3.6.11 on Windows 11 and inspect how the update window launches the new version. Trace the working-directory handling during that transition; done means the updated launcher starts in the game directory and can find its relative .minecraft folder.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100