Skip to content

Commit

Permalink
Add a desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Mar 10, 2018
1 parent 066fa93 commit 9aa1969
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ configure_file(
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/Uninstall.cmake)

install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.tom95.indicator-synapse.appdata.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/metainfo/)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.tom95.indicator-synapse.appdata.xml DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/share/metainfo/)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.tom95.indicator-synapse.desktop DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications)

install (FILES data/icons/com.github.tom95.indicator-synapse.svg DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/)
install (FILES data/icons/16/com.github.tom95.indicator-synapse.png DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/16x16/apps/)
Expand All @@ -56,4 +57,4 @@ install (FILES data/icons/com.github.tom95.indicator-synapse.svg DESTINATION ${C
install (FILES data/icons/com.github.tom95.indicator-synapse.svg DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/128x128/apps/)

# work around elementary/houston requiring an installed "binary"
install (FILES data/com.github.tom95.indicator-synapse DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install (PROGRAMS data/com.github.tom95.indicator-synapse DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ This codebase bundles the original [Synapse Launcher project](https://launchpad.
### Global Shortcut
To open the indicator via shortcut, add a custom shortcut in your keyboard settings with the following command:
```
wingpanel --toggle-indicator=com.github.tom95.indicator-synapse.synapse
wingpanel --toggle-indicator=com.github.tom95.indicator-synapse
```
3 changes: 3 additions & 0 deletions data/com.github.tom95.indicator-synapse
100644 → 100755
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

wingpanel --toggle-indicator=com.github.tom95.indicator-synapse
9 changes: 9 additions & 0 deletions data/com.github.tom95.indicator-synapse.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Synapse Indicator
Comment=Search through a variety of resources
GenericName=Search Utility
Exec=com.github.tom95.indicator-synapse %U
Icon=com.github.tom95.indicator-synapse
Terminal=false
Categories=GNOME;GTK;Utility;

0 comments on commit 9aa1969

Please sign in to comment.