Skip to content

Commit

Permalink
Fix icon handling in .desktop file
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Dec 1, 2015
1 parent 4cc6f59 commit ad2ed13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ TARGET_LINK_LIBRARIES(hoverboard ${SDL2PP_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})

# installation
IF(SYSTEMWIDE)
CONFIGURE_FILE(misc/hoverboard.desktop.in misc/hoverboard.desktop)

INSTALL(TARGETS hoverboard RUNTIME DESTINATION ${BINDIR})
INSTALL(DIRECTORY data/ DESTINATION ${DATADIR})
INSTALL(FILES misc/xkcd.ico DESTINATION ${ICONDIR})
INSTALL(FILES misc/hoverboard.desktop DESTINATION ${DESKTOPDIR})
INSTALL(FILES misc/xkcd.ico DESTINATION ${ICONDIR} RENAME hoverboard.ico)
INSTALL(FILES ${PROJECT_BINARY_DIR}/misc/hoverboard.desktop DESTINATION ${DESKTOPDIR})
ENDIF(SYSTEMWIDE)
2 changes: 1 addition & 1 deletion misc/hoverboard.desktop → misc/hoverboard.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Type=Application
Version=1.0
Name=Hoverboard
Comment=xkcd 1608 "Hoverboard" game
Icon=hoverboard
Icon=${ICONDIR}/hoverboard.ico
Exec=hoverboard
Categories=Game;AdventureGame;

0 comments on commit ad2ed13

Please sign in to comment.