The magic-launch remote part

This remote part fixes libmagic file type autodetection compatibility in snaps.

How to use

Merge the following snapcraft YAML snippet:

parts:
  # Remote part for fixing libmagic applications
  magic-launch:

And prepend "${SNAP}"/bin/magic-launch to the snap app's command chain:

apps:
  _app_name_:
    command: >
      bin/magic-launch
      _command_

The implementation

References

file(1) manual page

For generic remote part usage refer: Remote (reusable) parts