1 min read

Open aseprite files in linux from file manager

By default .ase and .aseprite files are not recognized and what program to used in order to open them.

In debian you can register a mime-type and based on that to match file extension pattern. After that you can launch a program when that mime-type is matched.

Create a xml file in : ~/.local/share/mime/packages/user-extension-ase.xml

You can copy and or view some options in the files already existing in the packages directory.

```
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
 <mime-type type="application/aseprite">
  <comment>Aseprite file</comment>
  <glob pattern="*.ase"/>
  <icon name="application-x-aseprite"/>
 </mime-type>
</mime-info>

After creating the file you can force update the mime-type database:

update-mime-database ~/.local/share/mime

You can register icons for that mime-type :

xdg-icon-resource install --context mimetypes --size 48 /mnt/store/SteamLibrary/steamapps/common/Aseprite/data/icons/ase48.png x-application-aseprite

I use the Aseprite version from steam and that is why the path to the icons is full path to SteamLibrary.