Add a linux .desktop file to add dolphin-emu to the menu, and install it
when running 'make install'.
This commit is contained in:
parent
d0301ca89d
commit
bb7c262539
|
@ -622,6 +622,13 @@ endif()
|
|||
if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|Darwin"))
|
||||
install(FILES Data/license.txt DESTINATION ${datadir})
|
||||
endif()
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
# Install the application icon and menu item
|
||||
install(FILES Source/Core/DolphinWX/resources/Dolphin.xpm
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps RENAME dolphin-emu.xpm)
|
||||
install(FILES Source/Core/DolphinWX/resources/dolphin-emu.desktop
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
|
||||
endif()
|
||||
|
||||
# packaging information
|
||||
set(CPACK_PACKAGE_NAME "dolphin-emu")
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Dolphin-emu
|
||||
Comment=A Wii/GameCube Emulator
|
||||
Icon=dolphin-emu
|
||||
Exec=dolphin-emu
|
||||
Categories=Game;
|
||||
|
Loading…
Reference in New Issue