An application called Qiita
saves a project file called xxx.qiita
.
However, the extension * .qiita
is not registered and is not associated with Qiita
.
Set the file * .qiita
to open with Qiita
.
First, make sure that the extension is not registered with the mimetype
command.
$ mimetype article.qiita
article.qiita: application/gzip
If it is not registered, it will be recognized as text / plain
or ʻapplication / gzip`.
$ sudo vi /usr/share/mime/packages/freedesktop.org.xml
Write xml while looking at the surrounding items. Comments are probably appropriate and okay.
<mime-type type="application/qiita">
<comment>Qiita file</comment>
<comment xml:lang="ja">Qiita file</comment>
<acronym>Qiita</acronym>
<expanded-acronym>Qiita file</expanded-acronym>
<glob pattern="*.qiita"/>
</mime-type>
Update mime database.
$ sudo update-mime-database /usr/share/mime
Verification
$ mimetype article.qiita
article.qiita: application/qiita
The app "Qiita" is compatible with "application / qiita", so make the settings.
Add to MimeType of the corresponding desktop file. If not, add a line.
$ sudo vi /usr/share/applications/qiita.desktop
...
MimeType=xxx/xxx;xxx/xxx;application/qiita;
...
Reload
$ update-desktop-database
You should be able to open the * .qiita
file with Qiita
.