Comment 5 for bug 1005271

Revision history for this message
hasufell (jd-o) wrote :

for the desktop file I would suggest to change it to "wargus.desktop.in" with:

[Desktop Entry]
Name=Wargus - Warcraft II
Comment=Warcraft II data game set for the Stratagus engine
Exec=@DESKTOPBIN@/wargus
Icon=wargus
Terminal=false
Type=Application
Categories=Game;StrategyGame;
StartupNotify=false

and in CMakeLists.txt:

# desktop file
if(NOT IS_ABSOLUTE "${BINDIR}")
 set(DESKTOPBIN "${CMAKE_INSTALL_PREFIX}/${BINDIR}")
else()
 set(DESKTOPBIN "${BINDIR}")
endif()
configure_file (
  "${PROJECT_SOURCE_DIR}/wargus.desktop.in"
  "${PROJECT_BINARY_DIR}/wargus.desktop"
  )