forked from mia/Aegisub
Separate desktop template for CMake
So it does not affect the translation
This commit is contained in:
parent
60a722db31
commit
3663d118b6
3 changed files with 17 additions and 4 deletions
|
@ -577,7 +577,7 @@ endif(uchardet_FOUND)
|
|||
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)
|
||||
configure_file("packages/desktop/aegisub.desktop.template.cmake.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)
|
||||
|
|
13
packages/desktop/aegisub.desktop.template.cmake.in
Normal file
13
packages/desktop/aegisub.desktop.template.cmake.in
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
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
|
||||
Categories=AudioVideo;AudioVideoEditing;
|
||||
MimeType=application/x-srt;text/plain;text/x-ass;text/x-microdvd;text/x-ssa;
|
||||
StartupNotify=true
|
|
@ -1,9 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Aegisub
|
||||
GenericName=Subtitle Editor
|
||||
Comment=Create and edit subtitles for film and videos.
|
||||
_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
|
||||
|
|
Loading…
Reference in a new issue