Catapult
Catapult copied to clipboard
Packages should be downloaded to e.g.`~/.cache` on Linux instead `/usr/bin`
Looks that when I open project in Godot Editor via /usr/bin/godot
, then when I trying to download installer I always got error message
ERROR: [14:16:48.587] [error] Failed to download cdda-linux-tiles-x64-2021-09-11-0808.tar.gz.
at: call (modules/gdscript/gdscript_functions.cpp:774)
This is probably caused by permissions problem.
I think that files downloaded files should go to .cache
or similar folder
Ha, it didn't occur to me that this would happen, since I never installed Godot through a package manager. It is best to download it directly from its website (it is one self-contained executable), since you often want to stick with a specific version for a given project and don't want it to change on you uncontrollably.
Catapult by design creates all its files next to the executable, for portability. When you run a project from Godot Editor, the editor itself is the executable, so when Catapult checks what directory it's in, it gets /usr/bin in your case. I don't know whether to view this as a legitimate issue that needs fixing, since it is not a problem with the end product.
That said, maybe it would make sense to check if the directory is writable on startup and fall back to ~/local/share or %LocalAppData%.