Skip to content

Commit

Permalink
Rename share/org.Rabbit.Calendar.desktop to share/applications/org.Ra…
Browse files Browse the repository at this point in the history
…bbit.Calendar.desktop.in
  • Loading branch information
KangLin committed Feb 13, 2025
1 parent 7ed239e commit c54b484
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion App/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ ADD_TARGET(NAME ${PROJECT_NAME}
VERSION ${Calendar_VERSION})

if(NOT ANDROID AND (UNIX OR IOS))
INSTALL(FILES ${CMAKE_SOURCE_DIR}/share/org.Rabbit.Calendar.desktop
configure_file(${CMAKE_SOURCE_DIR}/share/applications/org.Rabbit.Calendar.desktop.in
${CMAKE_BINARY_DIR}/org.Rabbit.Calendar.desktop)
INSTALL(FILES ${CMAKE_BINARY_DIR}/org.Rabbit.Calendar.desktop
DESTINATION "share/applications"
COMPONENT Application)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/Src/Resource/image/Calendar.png
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

[Desktop Entry]
Type=Application
Icon=Calendar
Exec=/opt/Calendar/bin/Calendar.sh
Path=/opt/Calendar
Exec=CalendarApp
TryExec=CalendarApp
Path=@CMAKE_INSTALL_PREFIX@/bin
Terminal=false
StartupNotify=true
Categories=Application;Development;Tools;Qt;

# https://specifications.freedesktop.org/menu-spec/latest/apa.html
Categories=Calendar;Development;Utility;Qt;

# https://www.freedesktop.org/wiki/Specifications/mime-apps-spec/
# https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/
MimeType=application/calendar+json;application/calendar+xml;application/octet-stream;text/calendar;text/x-vcalendar;application/vnd.sus-calendar;text/plain;

Name=Calendar
Expand Down

0 comments on commit c54b484

Please sign in to comment.