1
0
Fork 0

Add linux desktop icon

This commit is contained in:
wangqr 2019-05-22 20:45:51 -04:00
parent 019e68147e
commit f9ffc46bf6
2 changed files with 15 additions and 5 deletions

View File

@ -569,6 +569,16 @@ endif(uchardet_FOUND)
#ifdef WITH_UPDATE_CHECKER
if (NOT WIN32)
set(AEGISUB_COMMAND "aegisub" CACHE STRING "The executable name of Aegisub")
set_target_properties(Aegisub PROPERTIES OUTPUT_NAME aegisub)
configure_file("packages/desktop/aegisub.desktop.template.in" "aegisub.desktop" @ONLY)
install(FILES "${CMAKE_BINARY_DIR}/aegisub.desktop" DESTINATION "share/applications")
install(FILES "packages/desktop/16x16.png" DESTINATION "share/icons/hicolor/16x16/apps" RENAME aegisub.png)
install(FILES "packages/desktop/22x22.png" DESTINATION "share/icons/hicolor/22x22/apps" RENAME aegisub.png)
install(FILES "packages/desktop/24x24.png" DESTINATION "share/icons/hicolor/24x24/apps" RENAME aegisub.png)
install(FILES "packages/desktop/32x32.png" DESTINATION "share/icons/hicolor/32x32/apps" RENAME aegisub.png)
install(FILES "packages/desktop/48x48.png" DESTINATION "share/icons/hicolor/48x48/apps" RENAME aegisub.png)
install(FILES "packages/desktop/64x64.png" DESTINATION "share/icons/hicolor/64x64/apps" RENAME aegisub.png)
install(FILES "packages/desktop/scalable.svg" DESTINATION "share/icons/hicolor/scalable/apps" RENAME aegisub.svg)
endif (NOT WIN32)
install (TARGETS Aegisub RENAME aegisub DESTINATION bin)
install (TARGETS Aegisub DESTINATION bin)

View File

@ -1,10 +1,10 @@
[Desktop Entry]
Version=1.0
Type=Application
_Name=Aegisub
_GenericName=Subtitle Editor
_Comment=Create and edit subtitles for film and videos.
Exec=@AEGISUB_COMMAND@ %f
Name=Aegisub
GenericName=Subtitle Editor
Comment=Create and edit subtitles for film and videos.
Exec=env GDK_BACKEND=x11 @AEGISUB_COMMAND@ %f
TryExec=@AEGISUB_COMMAND@
Icon=aegisub
Terminal=false