Skip to content

Commit 3663d11

Browse files
committed
Separate desktop template for CMake
So it does not affect the translation
1 parent 60a722d commit 3663d11

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ endif(uchardet_FOUND)
577577
if (NOT WIN32)
578578
set(AEGISUB_COMMAND "aegisub" CACHE STRING "The executable name of Aegisub")
579579
set_target_properties(Aegisub PROPERTIES OUTPUT_NAME aegisub)
580-
configure_file("packages/desktop/aegisub.desktop.template.in" "aegisub.desktop" @ONLY)
580+
configure_file("packages/desktop/aegisub.desktop.template.cmake.in" "aegisub.desktop" @ONLY)
581581
install(FILES "${CMAKE_BINARY_DIR}/aegisub.desktop" DESTINATION "share/applications")
582582
install(FILES "packages/desktop/16x16.png" DESTINATION "share/icons/hicolor/16x16/apps" RENAME aegisub.png)
583583
install(FILES "packages/desktop/22x22.png" DESTINATION "share/icons/hicolor/22x22/apps" RENAME aegisub.png)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Type=Application
4+
Name=Aegisub
5+
GenericName=Subtitle Editor
6+
Comment=Create and edit subtitles for film and videos.
7+
Exec=env GDK_BACKEND=x11 @AEGISUB_COMMAND@ %f
8+
TryExec=@AEGISUB_COMMAND@
9+
Icon=aegisub
10+
Terminal=false
11+
Categories=AudioVideo;AudioVideoEditing;
12+
MimeType=application/x-srt;text/plain;text/x-ass;text/x-microdvd;text/x-ssa;
13+
StartupNotify=true

packages/desktop/aegisub.desktop.template.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[Desktop Entry]
22
Version=1.0
33
Type=Application
4-
Name=Aegisub
5-
GenericName=Subtitle Editor
6-
Comment=Create and edit subtitles for film and videos.
4+
_Name=Aegisub
5+
_GenericName=Subtitle Editor
6+
_Comment=Create and edit subtitles for film and videos.
77
Exec=env GDK_BACKEND=x11 @AEGISUB_COMMAND@ %f
88
TryExec=@AEGISUB_COMMAND@
99
Icon=aegisub

0 commit comments

Comments
 (0)