Game packs should support more paths.
Right now, the Unvanquished game pack contains these lines:
enginepath_linux="/usr/lib/unvanquished/"
engine_linux="../../../usr/bin/unvanquished"
The recommended installation paths for Unvanquished on Linux are as follows:
-
/usr/bin/unvanquished
is the launcher script, -
/usr/lib/unvanquished/
contains the Dæmon engine, and -
/usr/share/unvanquished/
contains thepkg
directory.
Hence the ugly hack of engine_linux="../../../usr/bin/unvanquished"
. Even worse (though we could fix that easily on our end with another hack), users are required to modify the engine path via Netradiant's configuration dialog to point to /usr/share/unvanquished/
instead.
In case someone is inclined to propose a different install location for our game, let me quickly reason why we distribute Unvanquished like this:
-
/opt/
is for (mostly commercial) programs that ship a complex file system structure of their own, and should generally be avoided when distributing progams via a package manager. -
/usr/bin/unvanquished
is the necessary location for a starter. -
/usr/lib/unvanquished/
for Dæmon is debatable as it only contains executables, but none of them is supposed to be executed by the user and they cannot go into/usr/bin/
as that would prevent multiple games from shipping different versions of Dæmon. -
/usr/share/unvanquished/
for thepkg
directory is in fact the correct location, as the game's assets are platform independent and/usr/share/
is exactly meant for program dependencies that can be shared safely among an ARM Linux, an x86_64 BSD, and your toaster. - Most importantly, if you disagree with any of this that makes the issue no less valid!
😛