mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
mime types on linux
This commit is contained in:
parent
bc758220a7
commit
269fb29901
3 changed files with 19 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -13,6 +13,9 @@ install:
|
|||
mv anki.xpm anki.png /usr/share/pixmaps/;\
|
||||
mv anki.desktop /usr/share/applications;\
|
||||
mv anki.1 /usr/share/man/man1/)
|
||||
xdg-mime install anki.xml
|
||||
xdg-mime default anki.desktop application/x-anki
|
||||
xdg-mime default anki.desktop application/x-apkg
|
||||
@echo
|
||||
@echo "Install complete."
|
||||
|
||||
|
@ -22,5 +25,6 @@ uninstall:
|
|||
rm -rf /usr/share/pixmaps/anki.{xpm,png}
|
||||
rm -rf /usr/share/applications/anki.desktop
|
||||
rm -rf /usr/share/man/man1/anki.1
|
||||
xdg-mime uninstall /usr/share/mime/packages/anki.xml
|
||||
@echo
|
||||
@echo "Uninstall complete."
|
||||
|
|
|
@ -9,3 +9,4 @@ Categories=Education;Languages;KDE;
|
|||
Terminal=false
|
||||
Type=Application
|
||||
Version=1.0
|
||||
MimeType=application/x-apkg;application/x-anki
|
||||
|
|
14
anki.xml
Normal file
14
anki.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||
|
||||
<mime-type type="application/x-anki">
|
||||
<comment>Anki 1.2 deck</comment>
|
||||
<glob pattern="*.anki"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/x-apkg">
|
||||
<comment>Anki 2.0 deck</comment>
|
||||
<glob pattern="*.apkg"/>
|
||||
</mime-type>
|
||||
|
||||
</mime-info>
|
Loading…
Reference in a new issue