Add text/{gemini,x-kristall} mime types during installation
Allows Kristall to distinguish gemini document and its theme files from plain text file on a disk by a file extension.
This commit is contained in:
parent
bf7e6a8a03
commit
3b9b21f11f
2
Makefile
2
Makefile
|
@ -41,6 +41,7 @@ install: kristall
|
|||
$(MAKEDIR) $(sharedir)/icons/hicolor/64x64/apps/
|
||||
$(MAKEDIR) $(sharedir)/icons/hicolor/128x128/apps/
|
||||
$(MAKEDIR) $(sharedir)/applications/
|
||||
$(MAKEDIR) $(sharedir)/mime/packages/
|
||||
$(MAKEDIR) $(bindir)
|
||||
|
||||
# Install files
|
||||
|
@ -50,6 +51,7 @@ install: kristall
|
|||
$(INSTALL_DATA) src/icons/kristall-64.png $(sharedir)/icons/hicolor/64x64/apps/net.random-projects.kristall.png
|
||||
$(INSTALL_DATA) src/icons/kristall-128.png $(sharedir)/icons/hicolor/128x128/apps/net.random-projects.kristall.png
|
||||
$(INSTALL_DATA) Kristall.desktop $(sharedir)/applications/Kristall.desktop
|
||||
$(INSTALL_DATA) kristall-mime-info.xml $(sharedir)/mime/packages/kristall.xml
|
||||
$(INSTALL_PROGRAM) kristall $(bindir)/kristall
|
||||
|
||||
uninstall:
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="text/gemini">
|
||||
<comment>Gemini document</comment>
|
||||
<sub-class-of type="text/plain"/>
|
||||
<glob pattern="*.gemini"/>
|
||||
<glob pattern="*.gmi"/>
|
||||
</mime-type>
|
||||
<mime-type type="text/x-kristall-theme">
|
||||
<comment>Kristall theme file</comment>
|
||||
<sub-class-of type="text/plain"/>
|
||||
<glob pattern="*.kthm"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
Loading…
Reference in New Issue