Skip to content

Desktop file and icon placement #1761

@dawkagaming

Description

@dawkagaming

Hello,

I made some changes to desktop file and icon placement.

See below.

Thanks,
Dawid Kulas
SP9SKA

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5e3163ae..3fd71cbb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -407,6 +407,7 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/root/res/themes DESTINATION share/sdrpp)
 configure_file(${CMAKE_SOURCE_DIR}/sdrpp.desktop ${CMAKE_CURRENT_BINARY_DIR}/sdrpp.desktop @ONLY)
 
 if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/root/res/icons/sdrpp.png DESTINATION share/icons/hicolor/512x512/apps)
     install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sdrpp.desktop DESTINATION share/applications)
 endif ()
 
diff --git a/sdrpp.desktop b/sdrpp.desktop
index 57a41518..58853275 100644
--- a/sdrpp.desktop
+++ b/sdrpp.desktop
@@ -1,9 +1,8 @@
 [Desktop Entry]
-Encoding=UTF-8
-Version=1.0
 Type=Application
 Terminal=false
-Exec=@CMAKE_INSTALL_PREFIX@/bin/sdrpp
+Exec=sdrpp
 Name=SDR++
-Icon=@CMAKE_INSTALL_PREFIX@/share/sdrpp/icons/sdrpp.png
-Categories=HamRadio
\ No newline at end of file
+Icon=sdrpp
+Categories=Utility;AudioVideo;Audio;HamRadio;
+Keywords=SDR;Hamradio;Radio;Amateur;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions