ChimeraOS / chimera

A web interface for managing Steam remotely
MIT License
237 stars 27 forks source link

Gog-Launcher tries to move the entiry root directory ("/*")! #315

Open Malbeth81 opened 2 months ago

Malbeth81 commented 2 months ago

After trying to launch a GOG game (Horizon Zero Dawn) I found that my disk was full, I had over 300GB free so it didn't make sense, I then found that my entire disk has been copied into the game's folder!

I proceeded to uninstall the game and try again, and it did the same thing. So I took a look inside the gog-launcher and found this: https://github.com/ChimeraOS/chimera/blob/4e39f2eada3d599cb61e90f03d8df9818dee9f3a/bin/gog-launcher#L14

If the result of the find ($appdir) is an empty string, this command will actually try to move the entire root directory inside the working directory! I have lost some of my files in my home directory as a result, because I didn't know it was moving them when I uninstalled the game...

This needs to be fixed ASAP!

alkazar commented 2 months ago

Oof, thanks. Horizon Zero Dawn doesn't have a goggame info file?

Malbeth81 commented 2 months ago

Nope, doesn't look like it does, I just reinstalled the game using the web portal to confirm.

20240907_123104