[OBSOLETED] The magic-launch remote part

Deprecated: The remote part feature is obsoleted in the recent versions of Snapcraft and should be avoided, refer The magic-launch launcher: Fix file type detection based on libmagic - doc - snapcraft.io for the latest implementation.

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