Skip to content

Commit 9aa1969

Browse files
committed
Add a desktop
1 parent 066fa93 commit 9aa1969

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ configure_file(
4545
add_custom_target(uninstall
4646
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/Uninstall.cmake)
4747

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

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

5859
# work around elementary/houston requiring an installed "binary"
59-
install (FILES data/com.github.tom95.indicator-synapse DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
60+
install (PROGRAMS data/com.github.tom95.indicator-synapse DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ This codebase bundles the original [Synapse Launcher project](https://launchpad.
77
### Global Shortcut
88
To open the indicator via shortcut, add a custom shortcut in your keyboard settings with the following command:
99
```
10-
wingpanel --toggle-indicator=com.github.tom95.indicator-synapse.synapse
10+
wingpanel --toggle-indicator=com.github.tom95.indicator-synapse
1111
```

data/com.github.tom95.indicator-synapse

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
wingpanel --toggle-indicator=com.github.tom95.indicator-synapse
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Name=Synapse Indicator
4+
Comment=Search through a variety of resources
5+
GenericName=Search Utility
6+
Exec=com.github.tom95.indicator-synapse %U
7+
Icon=com.github.tom95.indicator-synapse
8+
Terminal=false
9+
Categories=GNOME;GTK;Utility;

0 commit comments

Comments
 (0)