whomwah / qlstephen

A QuickLook plugin that lets you view plain text files without a file extension
https://github.com/whomwah/qlstephen
MIT License
2.75k stars 161 forks source link

"public.mpeg-2-transport-stream" does not show up with "qlmanage -m" #113

Open reggi opened 3 years ago

reggi commented 3 years ago

I am trying to use QLStephen to show quick look for .ts files (public.mpeg-2-transport-stream).

I added a couple ofkMDItemContentType ids to the Info.plist.

For some reason all of the ones I added work / show up in the list (using qlmanage -m | sort) except public.mpeg-2-transport-stream.

<string>public.data</string>
<string>public.content</string>
<string>public.mpeg-2-transport-stream</string>
<string>dyn.ah62d4rv4ge81k652</string>
<string>com.netscape.javascript-source</string>
<string>dyn.ah62d4rv4ge80y652</string>
<string>public.shell-script</string>

My question is why do all of these show up, except for the public.mpeg-2-transport-stream?

com.netscape.javascript-source -> /Users/thomas/Library/QuickLook/QLStephen.qlgenerator (1.5.1)
dyn.ah62d4rv4ge80y652 -> /Users/thomas/Library/QuickLook/QLStephen.qlgenerator (1.5.1)
dyn.ah62d4rv4ge81k652 -> /Users/thomas/Library/QuickLook/QLStephen.qlgenerator (1.5.1)
public.content -> /Users/thomas/Library/QuickLook/QLStephen.qlgenerator (1.5.1)
public.data -> /Users/thomas/Library/QuickLook/QLStephen.qlgenerator (1.5.1)
public.shell-script -> /Users/thomas/Library/QuickLook/QLStephen.qlgenerator (1.5.1)

I believe this same issue is happening with qlcolorcode.

reggi commented 3 years ago

Apparently MacOS is not allowing this file type to be modified. It seems like no app can enable preview for ts files on Big Sur.

https://findergg.com/ https://github.com/samuelmeuli/glance/blob/master/QLPlugin/Info.plist#L36 https://github.com/sbarex/SourceCodeSyntaxHighlight

mike-lischke commented 1 year ago

If we only could remove the transport stream assignment. How can this be completely locked by the OS?