whomwah / qlstephen

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

Does not work on executable files #116

Open fzwo opened 3 years ago

fzwo commented 3 years ago

I have many extensionless text files marked as executable on my drive. I think this may be a result of unzipping them.

Unfortunately, QLStephen doesn't work on those files. When I remove the x attribute, it works fine.

I noticed that I am not the only one with this issue: https://github.com/whomwah/qlstephen/issues/87#issuecomment-590575312

Is there anything that can be done?

fzwo commented 3 years ago

Adding public.unix-executable to the LSItemContentTypes in the Info.plist seems to have done the trick. I'll run with this configuration for a while and report back if I find any ill effects.