Linux launcher doesn't set working directory when launching
Affects Version/s: 2.0.1005-dev-linux.
The bug
On the Linux beta launcher, when launching the game, the working directory isn't set to the game directory like the macOS/Windows launchers do. Instead, it is kept as /opt/minecraft-launcher. This causes the game to try to save logs in /opt/minecraft-launcher/logs (because logs are always saved in the current directory instead of the game directory), usually causing a permission denied error.
How to reproduce
- Enable Open output log when the game starts in the Settings tab on the launcher.
- Run the game.
- Notice that no logs are saved in ~/.minecraft/logs. In the output log window, you can see that the game tries to save them in logs (in the working directory), which results in a Permission denied error.
- Manually create the /opt/minecraft-launcher/logs directory and chown it to your user.
- Start the game again.
- Notice that the logs are being written to that directory.
2017-12-26, 10:26 PM
2018-07-30, 09:15 PM
2018-06-26, 03:05 PM
1
2