Skip to content

Commit

Permalink
Add desktop file for linux gtk GUI application (#688)
Browse files Browse the repository at this point in the history
* Add desktop file for linux
* installing desktop file to /usr/../share/applications
* Move desktop file to gui subdirectory.
  • Loading branch information
Vascom authored and xor-gate committed Mar 28, 2018
1 parent 389fda2 commit 2ee6edc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
DESTINATION ${STLINK_MODPROBED_DIR}/)
install(FILES ${RULES_FILES}
DESTINATION ${STLINK_UDEV_RULES_DIR}/)
#desktop file for linux launcher
install(FILES src/tools/gui/stlink.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
endif()

add_subdirectory(src/gdbserver)
Expand Down
9 changes: 9 additions & 0 deletions src/tools/gui/stlink.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=stlink
GenericName=Stlink Tools
Comment=STM32 discovery line Linux programmer
Exec=stlink-gui
Icon=stlink-gui
Terminal=false
Type=Application
Categories=Development;Electronics;

0 comments on commit 2ee6edc

Please sign in to comment.