armagetronad-0.2.8.3.1 has a very good detection of prefix that should be used for installing games, except for .desktop entry and icons.
/usr/share/games/armagetronad/desktop/armagetronad.desktop
^ This should always to go /usr/share/applications/armagetronad.desktop even if the games prefix is prepended to other directories, it doesn't make sense elsewhere.
^ The .desktop entry generated has a bug:
$ desktop-file-validate /usr/share/games/armagetronad/desktop/armagetronad.desktop
/usr/share/games/armagetronad/desktop/armagetronad.desktop: warning: value "armagetronad.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
The desktop-file-validate command is from desktop-file-utils package, to check if the .desktop is per the freedesktop.org specification. The solution is to simply drop the .png extension from the Icon= line.
--- armagetronad.desktop.in.orig
+++ armagetronad.desktop.in
@@ -3,7 +3,7 @@
Name=@progtitle@@progtitle_server@
Exec=@progname@
Comment=3d light cycle game
-Icon=@progname@.png
+Icon=@progname@
Terminal=@build_dedicated@
Path=@prefix@/bin
Categories=Game;ActionGame;
/usr/share/games/armagetronad/desktop/icons/medium/armagetronad.png
/usr/share/games/armagetronad/desktop/icons/large/armagetronad.png
/usr/share/games/armagetronad/desktop/icons/small/armagetronad.png
^ These should always go to /usr/share/icons/hicolor/ per freedesktop.org specification too.
$ file /usr/share/games/armagetronad/desktop/icons/large/armagetronad.png
/usr/share/games/armagetronad/desktop/icons/large/armagetronad.png: PNG image data, 48 x 48, 8-bit/color RGBA, non-interlaced
$ file /usr/share/games/armagetronad/desktop/icons/medium/armagetronad.png
/usr/share/games/armagetronad/desktop/icons/medium/armagetronad.png: PNG image data, 32 x 32, 8-bit/color RGBA, non-interlaced
$ file /usr/share/games/armagetronad/desktop/icons/small/armagetronad.png
/usr/share/games/armagetronad/desktop/icons/small/armagetronad.png: PNG image data, 16 x 16, 8-bit/color RGBA, non-interlaced
^ So, 16x16, 32x32 and 48x48 are the sizes, thus:
/usr/share/icons/hicolor/16x16/apps/armagetronad.png
/usr/share/icons/hicolor/48x48/apps/armagetronad.png
/usr/share/icons/hicolor/32x32/apps/armagetronad.png
Thanks, Samuli