On Fri, 2012-07-13 at 15:05 +0200, Josselin Mouette wrote: > Le vendredi 13 juillet 2012 à 14:26 +0200, George Danchev a écrit : > > > It you want to make xdg-open useable for everything, please also > > > add a way to specify the mime type as option. Without that using > > > it for opening mail attachements or stuff downloaded (i.e. things > > > that already show a mime type before you open it) is simply > > > introducing a security bug. > > It is much better to let xdg-open or what it launches determine the MIME > type by inspecting the contents of the file instead of reading the MIME > type from an email, anyway. [...]
The MIME type should be determined once and then used consistently thereafter, rather than being determined again according to possibly different rules. This seems to mean that in some cases it will be necessary to specify the MIME type to xdg-open. Ben. -- Ben Hutchings The generation of random numbers is too important to be left to chance. - Robert Coveyou
signature.asc
Description: This is a digitally signed message part