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!
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...
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!