Commit 5e922d7b authored by Stepan Salenikovich's avatar Stepan Salenikovich

desktop entry: do not hardcode the icon path

To conform to the freedesktop standard, we should not hardcode the
icon path, nor provide its file extension.

Change-Id: If7f27e3dff46161904536cac47003359ed303fb5
Tuleap: #517
parent 50fd6af7
......@@ -379,30 +379,18 @@ CONFIGURE_FILE (
"${PROJECT_BINARY_DIR}/config.h"
)
# generate .desktop file
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/gnome-ring.desktop.in"
"${PROJECT_BINARY_DIR}/gnome-ring.desktop"
)
# generate .desktop file for autostart
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/gnome-ring.desktop.autostart.in"
"${PROJECT_BINARY_DIR}/gnome-ring.desktop.autostart"
)
INSTALL(TARGETS gnome-ring
RUNTIME DESTINATION bin
)
# install .desktop in XDG desktop dir so that it is recognized by the system
INSTALL(FILES ${PROJECT_BINARY_DIR}/gnome-ring.desktop
INSTALL(FILES ${PROJECT_SOURCE_DIR}/gnome-ring.desktop
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications
)
# install .desktop in the gnome-ring data dir, so that it can be copied to the
# autostart dir by the client
INSTALL(FILES ${PROJECT_BINARY_DIR}/gnome-ring.desktop.autostart
INSTALL(FILES ${PROJECT_SOURCE_DIR}/gnome-ring.desktop.autostart
DESTINATION
${CMAKE_INSTALL_PREFIX}/share/gnome-ring/
PERMISSIONS
......
......@@ -2,7 +2,7 @@
Name=Ring
Comment=Ring is a secured and distributed communication software.
Exec=gnome-ring
Icon=@RING_INSTALL_PREFIX@/share/icons/hicolor/scalable/apps/ring.svg
Icon=ring
StartupNotify=true
Terminal=false
Type=Application
......
......@@ -2,7 +2,7 @@
Name=Ring
Comment=Ring is a secured and distributed communication software.
Exec=gnome-ring --restore-last-window-state
Icon=@RING_INSTALL_PREFIX@/share/icons/hicolor/scalable/apps/ring.svg
Icon=ring
StartupNotify=true
Terminal=false
Type=Application
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment