Bug#942032: openjazz: please provide a launcher for Jazz Jackrabbit Holiday Hare '95

Simon McVittie smcv at debian.org
Wed Oct 9 11:04:35 BST 2019


On Wed, 09 Oct 2019 at 11:47:13 +0200, Alexandre Detiste wrote:
> game-data-packager can now package the extra levels "Holiday Hare '95"
> into it's own package.
> 
> Unlike the main game, these levels are freely downloadable.
> 
> The assets are installed into
> /usr/share/games/jazz-jackrabbit-hh95.
> 
> Can you provide a menu item for this game ?
> 
> This .desktop file could use a TryExec= stanza
> to make it appears only when HH95 is actuall installed
> 
> (then G-D-P should provide in /usr/share/games/jazz-jackrabbit-hh95
> a symlink to /usr/games/OpenJazz to makes it work ?)

The way this usually works is that the g-d-p-generated package
provides a symlink to an executable file (precisely what the target
is doesn't actually matter - usually nobody will actually run it -
but the game itself is conventional), and the game has a .desktop file
with a TryExec field pointing to that symlink. If the g-d-p-generated
package is installed, the symlink exists and points to an executable,
so the TryExec condition is true. If not, the symlink doesn't exist,
so the TryExec condition is false and the menu entry is hidden.

The handling of Quake III Team Arena (in the g-d-p source package)
makes quite a good example.

    smcv



More information about the Pkg-games-devel mailing list