The double-slash is most probably something easy to fix, I’ll have a look at it.
About the path to the game, I guess
/data/games/playit/games/agatha-christie-the-abc-murders is the path to the game binary, not the one to the game directory. This last one is most probably
/data/games/playit/share/games/agatha-christie-the-abc-murders/.
The paths on Debian-based systems are:
-
${PREFIX}/share/games/${GAME_ID} for the game data
-
${PREFIX}/share/doc/${GAME_ID} for the game documentation
-
${PREFIX}/games for the binaries (all games would put binaries in this same directory)
Of course, it makes a lot of sense for the default value of $PREFIX,
/usr/local, and a lot less for custom paths. We can quite easily test if the game will be installed in a standard path (
/usr or
/usr/local) so we could give a special treatment to non-standard installation paths. Any suggestion on this front would of course be welcome ;)
Maybe something similar to:
-
${PREFIX}/data/${GAME_ID} for the game data
-
${PREFIX}/doc/${GAME_ID} for the game documentation
-
${PREFIX}/bin for the binaries
Another option would be to use the paths for Arch-based and Gentoo-based systems, that might be less confusing than the Debian ones:
-
${PREFIX}/share/${GAME_ID} for the game data
-
${PREFIX}/share/doc/${GAME_ID} for the game documentation
-
${PREFIX}/bin for the binaries
---
By the way, you can easily try custom values for these paths if you wish. Look for
these lines near the end of
libplayit2.sh, that you can replace by any value you like.
But do not change the values of
PATH_DESK or
PATH_ICON_BASE, or your applications menu would no longer find the game launchers.