EnderWiggin / hafen-client

New Haven client
Other
26 stars 35 forks source link

All app files are downoloaded to $HOME directory on Linux #9

Closed Nu-hin closed 10 months ago

Nu-hin commented 5 years ago

Steps to reporoduce (Ubuntu 18.04, openjdk-11)

  1. Download updater-hafen.jar to some folder, e.g. $HOME/Downloads/hafen.
  2. Set the executable bit on updater-hafen.jar.
  3. Execute the file by double clicking on it.

Expected behavior:

Actual behavior:

This is quite annoying, as it pollutes homedir with lots of game jar's and configuration files.

EnderWiggin commented 5 years 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 ?

Nu-hin commented 5 years ago

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?

EnderWiggin commented 5 years ago

yes, it would be better

Nu-hin commented 5 years ago

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.

Nu-hin commented 5 years ago

It looks only you can transfer the issue.

https://help.github.com/en/articles/transferring-an-issue-to-another-repository