Skip to content

Commit 29962fd

Browse files
feat: add MIME type
#67 (comment)
1 parent 1735687 commit 29962fd

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

assets/lemon-lime.desktop.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ Terminal=false
2020
Path=/usr/bin
2121
Exec=lemon
2222
Icon=lemon-lime
23+
MimeType=application/x-lemon-contest

assets/x-lemon-contest.xml.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
3+
<mime-type type="application/x-lemon-contest">
4+
<generic-icon name="package-x-generic"/>
5+
<comment>Lemon Contest File</comment>
6+
<glob pattern="*.cdf"/>
7+
</mime-type>
8+
</mime-info>

cmake/platforms/linux.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include(GNUInstallDirs)
44

55
set(LEMON_LINUX_ICON_DIMENSIONS 16 22 24 32 36 44 48 64 72 96 128 150 192 256 310 512 1024)
66
install(FILES assets/lemon-lime.metainfo.xml.in DESTINATION "${CMAKE_INSTALL_DATADIR}/metainfo" RENAME lemon-lime.metainfo.xml)
7+
install(FILES assets/x-lemon-contest.xml.in DESTINATION "${CMAKE_INSTALL_DATADIR}/mime/application" RENAME x-lemon-contest.xml)
78
install(FILES assets/lemon-lime.desktop.in DESTINATION "${CMAKE_INSTALL_DATADIR}/applications" RENAME lemon-lime.desktop)
89
#install(FILES assets/icons/lemon-lime.svg DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps")
910
foreach(LEMON_LINUX_ICON_DIMENSION ${LEMON_LINUX_ICON_DIMENSIONS})

makespec/BUILDVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
102
1+
104

0 commit comments

Comments
 (0)