xupwup / LoLPatcher

League of Legends patcher
12 stars 4 forks source link

Files are always saved in the home directory with OpenJDK in Linux #15

Closed izrol3 closed 8 years ago

izrol3 commented 8 years ago

When I run the program with OpenJDK, the files downloaded are not saved in the directory containing the program. Instead, the files are saved in the home directory. For your information, the operating system of my computer is Lubuntu 14.04. Thanks in advance.

xupwup commented 8 years ago

The program simply dumps the files in the working directory. The easiest way to get it working is to make a file called "run.sh", and put the following text inside:

#!/bin/sh
java -jar SelfPatchFinalizer.jar LoLPatcher.jar

Running that should ensure the current directory is set correctly. (maybe you need to do chmod +x run.sh)