Skip to content

Commit 46100c8

Browse files
committed
Add mime-type definition
1 parent 692222e commit 46100c8

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ tar2arx -o my_archive.arx https://example.com/my_archive.tar.gz
135135

136136
Arx mimetype can be registered by:
137137

138-
- Copying misc/mime_type.xml as `~/.local/share/mime/packages/arx.xml`.
138+
- Copying arx/misc/mime_type.xml as `~/.local/share/mime/packages/arx.xml`.
139139
- Run `update-mime-database ~/.local/share/mime`
140140

141141
## Completion scripts

arx/misc/mime_type.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version='1.0'?>
2+
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
3+
<mime-type type="application/x-arx">
4+
<comment>Arx archive files</comment>
5+
<sub-class-of type="application/x-archive" />
6+
<magic priority="50">
7+
<match type="string" offset="0:256" value="jbk_ARX" mask="0xffffff00ffffff"/>
8+
</magic>
9+
<glob pattern="*.arx"/>
10+
11+
<icon name="package-x-generic" />
12+
<generic-icon name="package-x-generic" />
13+
</mime-type>
14+
</mime-info>

0 commit comments

Comments
 (0)