qlmarkdown icon indicating copy to clipboard operation
qlmarkdown copied to clipboard

Support for dynamic UTIs

Open booch opened this issue 10 years ago • 5 comments

I reinstalled Mavericks, and now my UTI for .md files (as reported by mdls) is dyn.ah62d4rv4ge8043a. According to this article on UTIs, that translates to ?0=6:1=md, which means UTTypeConformsTo= public.data:public.filename-extension=md.

Long story short, adding dyn.ah62d4rv4ge8043a to the Info.plist makes it work.

booch avatar May 26 '14 01:05 booch

I haven't looked into dynamic UTIs yet. Are you saying that I just add that to the .plist in the next release, or are dynamic UTIs something we have to look at supporting... dynamically?

tarwich avatar May 26 '14 01:05 tarwich

Yeah, we can just add to the plist, and it'll work. According to the referenced article (and this Stack Overflow entry), dynamic UTIs are based on the file extension, so they won't change.

Submitting a pull request for this momentarily.

booch avatar May 26 '14 01:05 booch

Cool. Thanks. I'll be happy to merge that in.

On Sun, May 25, 2014 at 8:21 PM, Craig Buchek [email protected]:

Yeah, we can just add to the plist, and it'll work. According to the referenced article (and this Stack Overflow entryhttp://stackoverflow.com/questions/8003919/are-dynamic-utis-stable, dynamic UTIs are based on the file extension, so they won't change.

Submitting a pull request for this momentarily.

— Reply to this email directly or view it on GitHubhttps://github.com/toland/qlmarkdown/issues/37#issuecomment-44151156 .

tarwich avatar May 26 '14 01:05 tarwich

I wonder if this could fix #14...

tarwich avatar May 26 '14 01:05 tarwich

@tarwich I don't think it'd help with #14. Because .txt is already registered, they'll always come up as the public.plain-text UTI.

I don't think there's a way to register a double extension like that, either.

booch avatar May 26 '14 02:05 booch