Skip to content

Instantly share code, notes, and snippets.

View Typiqally's full-sized avatar
:octocat:
Work hard play hard

Jelle Maas Typiqally

:octocat:
Work hard play hard
View GitHub Profile
@giner
giner / drawio_mime_type.sh
Last active August 17, 2023 13:50
Give *.drawio files MIME type to make application association work
#!/bin/sh
# drawio.xml is taken from Draw.io debian package
cat > ~/.local/share/mime/packages/drawio.xml << 'EOF'
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/vnd.jgraph.mxfile">
<glob pattern="*.drawio"/>
<comment>draw.io Diagram</comment>
<icon name="x-office-document" />