Updated musikcube.desktop for the snap.

This commit is contained in:
casey langen 2020-04-11 13:41:47 -07:00
parent 6793051504
commit 0461e59b3d
3 changed files with 21 additions and 4 deletions

View File

@ -238,7 +238,11 @@ file(COPY ${locales} DESTINATION bin/locales)
install(FILES ${locales} DESTINATION share/musikcube/locales)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
file(GLOB linux_share_applications "src/musikcube/data/linux/share/applications/*")
if (${ENABLE_SNAP} MATCHES "true")
file(GLOB linux_share_applications "src/musikcube/data/linux/share/applications/musikcube.desktop")
else()
file(GLOB linux_share_applications "src/musikcube/data/linux/share/applications/musikcube.snap.desktop")
endif()
install(FILES ${linux_share_applications} DESTINATION share/applications/)
file(GLOB linux_share_icons_48 "src/musikcube/data/linux/share/icons/hicolor/48x48/apps/*")
install(FILES ${linux_share_icons_48} DESTINATION share/icons/hicolor/48x48/apps/)

View File

@ -4,9 +4,9 @@ Type=Application
Name=musikcube
GenericName=musikcube
Comment=terminal-based music player
Exec=musikcube %U
TryExec=musikcube
Icon=musikcube
Exec=musikcube.app %U
TryExec=/snap/bin/musikcube.app
Icon=${SNAP}/usr/share/icons/hicolor/128x128/apps/musikcube.png
Terminal=true
Categories=AudioVideo;Player;Audio;
StartupNotify=false

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=musikcube
GenericName=musikcube
Comment=terminal-based music player
Exec=musikcube.app %U
TryExec=/snap/bin/musikcube.app
Icon=${SNAP}/usr/share/icons/hicolor/128x128/apps/musikcube.png
Terminal=true
Categories=AudioVideo;Player;Audio;
StartupNotify=false
StartupWMClass=musikcube