Closed Nu-hin closed 10 months ago
That is strange - it is supposed to download files into working dir. Are you launching it in a way that sets its working dir to $HOME ?
I just double-click the jar in Nautilus. But I will try to launch from the console and report back.
Meanwhile, maybe this issue should go to updater repo?
yes, it would be better
OK, so it seems that Nautilus indeed sets the working dir to home directory.
People here https://stackoverflow.com/questions/4157358/java-linux-working-directory-is-my-home-folder recommend to use paths relative to the current JAR, rather than to the workdir.
It looks only you can transfer the issue.
https://help.github.com/en/articles/transferring-an-issue-to-another-repository
Steps to reporoduce (Ubuntu 18.04, openjdk-11)
updater-hafen.jar
to some folder, e.g.$HOME/Downloads/hafen
.updater-hafen.jar
.Expected behavior:
$HOME/Downloads/hafen
Actual behavior:
This is quite annoying, as it pollutes homedir with lots of game jar's and configuration files.