<div dir="ltr"><div><div><div><div><div>Dear Stefan,<br><br></div>Thanks for your reply. I think I didn't explain my question very well.<br><br></div>If x-content/audio-dvd, x-content/video-bluray, x-content/video-hddvd etc. are valid MIME types, detected by the presence of certain files or directory structures, should there also be a MIME type for AVCHD, indicated by the presence of a path PRIVATE/AVCHD/BDMV/STREAM?<br><br></div>But perhaps there is a good reason why this is not the case?<br><br></div>Thanks.<br><br></div>Christopher<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 April 2016 at 23:59, Stefan Blachmann <span dir="ltr"><<a href="mailto:sblachmann@gmail.com" target="_blank">sblachmann@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="im HOEnZb">Hi Christopher,<br>
<br>
the desktop managers or whatever are free to choose from the<br>
applications that offer a particular mimetype. There is no<br>
"standardized" OpenWith mechanism.<br>
Thus it's quite random what app(s) from the available ones get opened.<br>
<br>
This is a shortcoming of the standard. I don't see a way to escape it<br>
except of generally offering an OpenWith dialog.<br>
<br>
Hope this helps.<br>
Stefan<br>
<br>
On 4/1/16, Christopher Hoskin <<a href="mailto:christopher.hoskin@gmail.com">christopher.hoskin@gmail.com</a>> wrote:<br>
</span><div class="HOEnZb"><div class="h5">> Hello,<br>
><br>
> I am interested in detecting when an SD card used in a camcorder is<br>
> connected to a computer. There appears to be a convention (possibly a<br>
> standard, but I don't have a reference?) that camcorders recording to the<br>
> AVCHD format structure their file layout as shown here:<br>
><br>
> <a href="https://en.wikipedia.org/wiki/File:AVCHD_actual_file_structure.jpg" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/File:AVCHD_actual_file_structure.jpg</a><br>
><br>
> Currently this results in a Camcorder SD card being identified as<br>
> 'x-content/image-dcf', which typically leads to the desktop environment<br>
> automatically opening a photo editing application, rather than a video<br>
> editing application.<br>
><br>
> As a first draft, the entry might look something like this:<br>
><br>
>   <mime-type type="x-content/camcorder-avchd"><br>
>     <_comment>AVCHD Camcorder SD Card</_comment><br>
>     <treemagic><br>
>       <treematch path="PRIVATE/AVCHD/BDMV/STREAM" type="directory"<br>
> non-empty="true"/><br>
>     </treemagic><br>
>   </mime-type><br>
><br>
> I am not an expert in this area, so this may need some refinement.<br>
><br>
> I would be interested to know your thoughts on whether it would be<br>
> appropriate to introduce such a MIME type?<br>
><br>
> Thanks for your time.<br>
><br>
> Christopher Hoskin<br>
><br>
</div></div></blockquote></div><br></div>