Tim
- _tim_
- _tim_
- Australia/Sydney
- Yes
- No
Today I returned to Minecraft after a long break and upgraded to the latest launcher version. On trying to launch the game, I got this error:
"_The game directory is invalid or inaccessible.Error details: The system cannot find the file specifiedFilename on disk: .minecraftPath: C:\Users\Tim\AppData\Roaming\.minecraftExists: directory_"On my system, "C:\Users\Tim\AppData\Roaming" is a directory junction to "D:\Data\Tim\winhome\AppData\Roaming". This previously worked fine with no issues under the old launcher; I have made no changes except to update the launcher to the latest version.
As a workaround, modifying the game directory under 'launch options' and setting it to the actual location (D:\Data\Tim\winhome\AppData\Roaming\.minecraft) makes the launcher work correctly.
To reproduce:
- Go to an administrator command prompt in a scratch space on the filesystem.
- > mkdir mctest-realdir
- > mklink /J mctest-junct mctest-realdir
- Set game directory to "mctest-realdir" and verify that it launches
- Set game directory to "mctest-junct" and observe error message
Today I returned to Minecraft after a long break and upgraded to the latest launcher version. On trying to launch the game, I got this error:
The game directory is invalid or inaccessible.
Error details: The system cannot find the file specified
Filename on disk: .minecraft
Path: C:\Users\Tim\AppData\Roaming\.minecraft
Exists: directoryOn my system, "C:\Users\Tim\AppData\Roaming" is a directory junction to "D:\Data\Tim\winhome\AppData\Roaming". This previously worked fine with no issues under the old launcher; I have made no changes except to update the launcher to the latest version.
As a workaround, modifying the game directory under 'launch options' and setting it to the actual location (D:\Data\Tim\winhome\AppData\Roaming\.minecraft) makes the launcher work correctly.
To reproduce:
- Go to an administrator command prompt in a scratch space on the filesystem.
- > mkdir mctest-realdir
- > mklink /J mctest-junct mctest-realdir
- Set game directory to "mctest-realdir" and verify that it launches
- Set game directory to "mctest-junct" and observe error message
If anyone is viewing this bug due to issues with a junction / hardlinked .minecraft directory, you may be able to work around it simply by changing the launch options for "game directory" within the launcher (to the real location instead of the AppData/.minecraft) without using --workdir. (Worked for me; YMMV.)
It's not actually a duplicate, since that issue was about environment variable %APPDATA% no longer being supported. (It's more of a duplicate for https://bugs.mojang.com/browse/MCL-5528, which I didn't find because they had a hardlink intsead of a junction, which I didn't search for.)
But I don't really care, since I have a workaround for it.
Thanks, I was interested in why it became an issue and why it couldn't (practically) be fixed. Libraries that break things like that is definitely annoying. (For reference... I have my entire AppData/* directory junctioned to another drive, and literally no other program has a problem with that. Boo boost.)
Anyway, --workdir or setting "Game Directory" workarounds are good enough.