Skip to content

Linux + iPhone Continuity / iMessage / SMS

fix icon

Zack Bartel0c98dd2de484
diff --git a/src/gtk/CMakeLists.txt b/src/gtk/CMakeLists.txt
index f40668b..4a9e253 100644
--- a/src/gtk/CMakeLists.txt
+++ b/src/gtk/CMakeLists.txt
@@ -17,7 +17,9 @@ include(GNUInstallDirs)
install(TARGETS tether-gtk
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
-install(FILES tether-gtk.desktop
+configure_file(tether-gtk.desktop.in tether-gtk.desktop @ONLY)
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/tether-gtk.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
install(FILES tether.png
diff --git a/src/gtk/tether-gtk.desktop b/src/gtk/tether-gtk.desktop.in
similarity index 73%
rename from src/gtk/tether-gtk.desktop
rename to src/gtk/tether-gtk.desktop.in
index 34fab75..0e2e9de 100644
--- a/src/gtk/tether-gtk.desktop
+++ b/src/gtk/tether-gtk.desktop.in
@@ -3,7 +3,7 @@ Name=Tether
GenericName=Device Synchronization
Comment=Pair devices and synchronize clipboard across the network
Exec=tether-gtk
-Icon=tether
+Icon=@CMAKE_INSTALL_FULL_DATADIR@/icons/hicolor/1024x1024/apps/tether.png
Terminal=false
Type=Application
Categories=Network;Utility;