On Tue, Feb 02, 2016 at 10:52:45PM +0100, Stefan Sperling wrote:
> On Tue, Feb 02, 2016 at 10:41:12PM +0100, Rafael Sadowski wrote:
> > Yes, if we disable GTK+ and libmagic we fallback to file(1).
> 
> Easy choice. Just use file(1) and disable the others. file(1) is satisfied
> by the base install (no extra deps) and is also the most secure option of
> the bunch.

Tried with just the file backend enabled, it's "less" rich than the
gtk/libmagic combination but works for pdf/jpg/txt/mp3. No match for tgz,
proposes fuse-archivemount for .tar.gz, proposes text editor for
gpx/gsb... for the latter, the correct mimetype was found and the best
handler was proposed. I guess that's what you get for using file from
base which is ... basic.

(try :f on a file to see the available handlers for the detected
mimetype)

Landry

Reply via email to