hyperdefined / CustomLauncherRewrite

An all purpose custom TTR launcher.
GNU General Public License v3.0
5 stars 1 forks source link

[Bug] CustomLauncherRewrite-*.jar wildcard to launch the game inside run.sh doesn't work #100

Closed RiQuY closed 5 months ago

RiQuY commented 5 months ago

Describe the issue When running the run.sh script it tries to open the file CustomLauncherRewrite-.jar instead of replacing the symbol with the version number.

Contents of my /opt/CustomLauncherRewrite/ folder:

ls /opt/CustomLauncherRewrite/
CustomLauncherRewrite-1.9.1.jar  run.sh

Screenshot/video/etc

Log file Output of /opt/CustomLauncherRewrite/run.sh

ls: no se puede acceder a 'CustomLauncherRewrite-*.jar': No existe el fichero o el directorio
Error: Unable to access jarfile 

Translation: Cannot access 'CustomLauncherRewrite-*.jar': File or folder doesn't exists.

UPDATE: The issue also happens with sudo and without the wildcard *, specifying the exact filename.

sudo /opt/CustomLauncherRewrite/run.sh
[sudo] contraseña para root: 
ls: no se puede acceder a 'CustomLauncherRewrite-1.9.1.jar': No existe el fichero o el directorio
Error: Unable to access jarfile 
RiQuY commented 5 months ago

I was able to fix the launching error by changing the line latest=$(ls -t CustomLauncherRewrite-*.jar | head -n1) to this as a workaround:

But now the Java program crashes with this error:

Strangely, opening the app for the second time shows the app menu correctly.

hyperdefined commented 5 months ago

Interesting, I'll take a look shortly.

hyperdefined commented 5 months ago

I would remove all files from the launcher, then run the installer again. I believe I have fixed all your issues you were facing.