Skip to content

Commit

Permalink
Linux: Added app launcher shortcuts for the client and Shell
Browse files Browse the repository at this point in the history
IssueID #2092
  • Loading branch information
skyjake committed Oct 19, 2016
1 parent 64a3b14 commit 57f1ab3
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 19 deletions.
10 changes: 0 additions & 10 deletions distrib/linux/doomsday-shell.desktop

This file was deleted.

6 changes: 0 additions & 6 deletions distrib/linux/launch-doomsday

This file was deleted.

8 changes: 8 additions & 0 deletions doomsday/apps/client/CMakeLists.txt
Expand Up @@ -137,6 +137,14 @@ else ()
set_property (TARGET client PROPERTY OUTPUT_NAME "doomsday")
endif ()

if (UNIX AND NOT APPLE)
configure_file (doomsday-engine.desktop.in net.dengine.Doomsday.desktop)
install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/net.dengine.Doomsday.desktop
DESTINATION share/applications)
install (FILES res/linux/deng-logo-256.png
DESTINATION ${DENG_INSTALL_DATA_DIR})
endif ()

if (WIN32)
# WIX generator requires setting this manually.
set_property (INSTALL "bin/$<TARGET_FILE_NAME:client>"
Expand Down
@@ -1,10 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=Doomsday Engine
Name=Doomsday 2
Comment=Doom/Heretic/Hexen with enhanced graphics
Categories=Game;ActionGame;
Exec=BIN_DIR/launch-doomsday
Exec=${CMAKE_INSTALL_PREFIX}/bin/doomsday
Terminal=false
Type=Application
Icon=SB_DIR/graphics/snowberry.png
Icon=${CMAKE_INSTALL_PREFIX}/${DENG_INSTALL_DATA_DIR}/deng-logo-256.png

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions doomsday/tools/shell/CMakeLists.txt
Expand Up @@ -44,6 +44,14 @@ deng_install_bundle_deps (shell Deng::libcore Deng::libshell)
deng_install_deployqt (shell)
deng_codesign (shell)

if (UNIX AND NOT APPLE)
configure_file (doomsday-shell.desktop.in net.dengine.Shell.desktop)
install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/net.dengine.Shell.desktop
DESTINATION share/applications)
install (FILES res/linux/deng-shell-logo-256.png
DESTINATION ${DENG_INSTALL_DATA_DIR})
endif ()

if (WIN32)
# WIX generator requires setting this manually.
set_property (INSTALL "bin/$<TARGET_FILE_NAME:shell>"
Expand Down
10 changes: 10 additions & 0 deletions doomsday/tools/shell/doomsday-shell.desktop.in
@@ -0,0 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=Doomsday Shell
Comment=Shell for controlling Doomsday Engine servers
Categories=Game;ActionGame;
Exec=${CMAKE_INSTALL_PREFIX}/bin/doomsday-shell
Terminal=false
Type=Application
Icon=${CMAKE_INSTALL_PREFIX}/${DENG_INSTALL_DATA_DIR}/deng-shell-logo-256.png

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 57f1ab3

Please sign in to comment.