Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on El Capitan #54

Closed
PEZO19 opened this issue Aug 13, 2016 · 14 comments
Closed

Does not work on El Capitan #54

PEZO19 opened this issue Aug 13, 2016 · 14 comments

Comments

@PEZO19
Copy link

PEZO19 commented Aug 13, 2016

I tried to install it QLStephen.qlgenerator many ways, I also tried to put the file in ~/Library/Quicklook and also in /Library/Quicklook, but does not work for me. Yes, I also tried qlmanage -r, and I tried to use only one of the Quicklook dirs at one time. It just does not work for me: if there is a file anywhere called README (or anything else, without an extension), my preview stays the original. :( I have really no idea.

@tomfado
Copy link
Collaborator

tomfado commented Aug 13, 2016

Den 2016-08-13 kl. 13:19, skrev PEZO19:

I tried to install it QLStephen.qlgenerator many ways, I also tried to
put the file in |~/Library/Quicklook| and also in |/Library/Quicklook|,
but does not work for me. Yes, I also tried |qlmanage -r|, and I tried
to use only one of the |Quicklook| dirs at one time. It just does not
work for me: if there is a file anywhere called README (or anything
else, without an extension), my preview stays the original. :( I have
really no idea.

If you run "qlmanage -d1 -p " you may get a clue what's going on.

Tomas Fasth tomfa@debian.org
Debian Developer
GPG fingerprint: B9BC EDE2 9580 516A EA8C 34E7 33C1 FE3D 81D7 2FF8

@PEZO19
Copy link
Author

PEZO19 commented Aug 14, 2016

Thank you, now I got this: (with and without sudo)

d:
[DEBUG] Loading
[DEBUG] Previewing file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator did not produce anything
[DEBUG] Thumbnailing file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator/ - type: com.apple.quicklook-generator - generator: (try #1)
[DEBUG] Thumbnailing file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator. Content type UTI: com.apple.quicklook-generator. Generator used:
[DEBUG] Thumbnailing file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator did not produce anything
2016-08-14 23:18:13.470 qlmanage[37465:717586] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x980b, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-14 23:18:13.788 qlmanage[37465:717586] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xbb33, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-14 23:18:13.791 qlmanage[37465:717586] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x4917, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-14 23:18:13.791 qlmanage[37465:717586] void __CFPasteboardSetup() : Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions

@tomfado
Copy link
Collaborator

tomfado commented Aug 15, 2016

In order to get help, you need to give more information.
For example, what did you do to produce this output?

An initial observation: the first line "Loading" should contain path to
generator file. It doesn't. We need to understand why.

Den 2016-08-14 kl. 23:21, skrev PEZO19:

Thank you, now I got this: (with and without sudo)

d:
[DEBUG] Loading
[DEBUG] Previewing
file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator did not
produce anything
[DEBUG] Thumbnailing
file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator/ - type:
com.apple.quicklook-generator - generator: (try #1
#1)
[DEBUG] Thumbnailing
file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator. Content type
UTI: com.apple.quicklook-generator. Generator used:
[DEBUG] Thumbnailing
file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator did not
produce anything
2016-08-14 23:18:13.470 qlmanage[37465:717586] *** CFMessagePort:
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
0x980b, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-14 23:18:13.788 qlmanage[37465:717586] *** CFMessagePort:
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
0xbb33, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-14 23:18:13.791 qlmanage[37465:717586] *** CFMessagePort:
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
0x4917, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-14 23:18:13.791 qlmanage[37465:717586] void
__CFPasteboardSetup() : Failed to allocate communication port for
com.apple.CFPasteboardClient; this is likely due to sandbox restrictions


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#54 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJ6UIH5r8MG3d59hei_JFbIt8XwjcKJjks5qf4btgaJpZM4JjqJC.

Tomas Fasth tomfa@debian.org
Debian Developer
GPG fingerprint: B9BC EDE2 9580 516A EA8C 34E7 33C1 FE3D 81D7 2FF8

@tomfado
Copy link
Collaborator

tomfado commented Aug 15, 2016

Ah, now I see.

Qlmanage tries to preview the QLStephen generator file itself, which
points to a possible typing error. Again, how was the debug command issued?

Den 2016-08-14 kl. 23:21, skrev PEZO19:

Thank you, now I got this: (with and without sudo)

d:
[DEBUG] Loading
[DEBUG] Previewing
file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator did not
produce anything
[DEBUG] Thumbnailing
file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator/ - type:
com.apple.quicklook-generator - generator: (try #1
#1)
[DEBUG] Thumbnailing
file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator. Content type
UTI: com.apple.quicklook-generator. Generator used:
[DEBUG] Thumbnailing
file:///Users/pezo/Library/QuickLook/QLStephen.qlgenerator did not
produce anything
2016-08-14 23:18:13.470 qlmanage[37465:717586] *** CFMessagePort:
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
0x980b, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-14 23:18:13.788 qlmanage[37465:717586] *** CFMessagePort:
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
0xbb33, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-14 23:18:13.791 qlmanage[37465:717586] *** CFMessagePort:
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
0x4917, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-14 23:18:13.791 qlmanage[37465:717586] void
__CFPasteboardSetup() : Failed to allocate communication port for
com.apple.CFPasteboardClient; this is likely due to sandbox restrictions


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#54 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJ6UIH5r8MG3d59hei_JFbIt8XwjcKJjks5qf4btgaJpZM4JjqJC.

Tomas Fasth tomfa@debian.org
Debian Developer
GPG fingerprint: B9BC EDE2 9580 516A EA8C 34E7 33C1 FE3D 81D7 2FF8

@tsdorsey
Copy link
Collaborator

Agree with @tomfado about needing more info. The latest release was developed, and the install process tested, on El Capitan.

What is your install method...

  • Compile locally?
  • Download compiled plugin?
  • Homebrew?

@PEZO19
Copy link
Author

PEZO19 commented Aug 16, 2016

@tomfado
Before, the previous debug command was :
(1)qlmanage -d1 -p ~/Library/QuickLook/QLStephen.qlgenerator which was kinda stupid.

Other QL stuff (for csv and for json) are working fine, instantly.
Now I tried:
(2)qlmanage -p -g ~/Library/QuickLook/QLStephen.qlgenerator ~/Desktop/README_example -c ''

Now it works with this command in debug mode forcing with -c '', but still not in Finder.

I got this output for the (2) command:

Testing Quick Look preview with files:
/Users/pezo/Desktop/README_example
- force using content type UTI:
- force using generator at path: /Users/pezo/Library/QuickLook/QLStephen.qlgenerator
2016-08-16 12:48:04.302 qlmanage[15729:1035095] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8813, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-16 12:48:04.338 qlmanage[15729:1035095] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xac3f, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-16 12:48:04.339 qlmanage[15729:1035095] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x4627, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2016-08-16 12:48:04.339 qlmanage[15729:1035095] void __CFPasteboardSetup() : Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions

@PEZO19
Copy link
Author

PEZO19 commented Aug 16, 2016

@tsdorsey:
I tried 2 of 3:

  • Download compiled plugin
  • Homebrew

@tomfado
Copy link
Collaborator

tomfado commented Aug 16, 2016 via email

@tsdorsey
Copy link
Collaborator

@PEZO19 I ran command (2) on a file and I also see the error about the sandbox restriction. Looking into that it seems it has to do with text selection. As you said, the preview still works. However you won't be able to select text inside the preview.

Could you please run qlmanage -m plugins and paste the results here (or in a gist)?

Is your system language something other than english?

@vin047
Copy link

vin047 commented Nov 17, 2016

I had a similar issue (installed via homebrew, tried on both El Capitan and Sierra). Following #54 (comment) I saw that an application I had installed from the App Store (Paint 2.app in my specific case) was being loaded instead of this plugin. Removing the app and running qlmanage -r sorted the issue for me.

This link explains it: http://stackoverflow.com/questions/11705425/prefer-my-quicklook-plugin seems application generators are preferred over anything in ~/Library/QuickLook

@C0deH4cker
Copy link

I figured out how to resolve this issue. Run the command qlmanage -m plugins | grep public.data. If you don't see a line like public.data -> /Users/kevin/Library/QuickLook/QLStephen.qlgenerator (1.4.4 - loaded), then there is some other QuickLook plugin that claims to handle public.data types. You'll have to edit that app's QuickLook plugin's Info.plist and comment out the line(s) that declares support for public.data. After this, you'll need to run qlmanage -r again to get the QuickLook daemon to refresh its list of plugins and run the first command again. Repeat these steps until the entry for public.data is QLStephen. I had to do this twice, once for the Paint 2 app and once for the Datum SQLite app.

@sagar3715
Copy link

I follow this video and my issue has been solved
https://www.youtube.com/watch?v=exYl-pSVTSs&t=1029s

@xypd
Copy link

xypd commented Apr 21, 2018

Ran into this issue with the kritaquicklook.qlgenerator plugin and @C0deH4cker solution worked great! Now I have both working as expected. Thanks.

@tsdorsey
Copy link
Collaborator

tsdorsey commented Feb 5, 2020

1.5.1 should works on macOS 10.6 (Snow Leopard) - 10.15 (Catalina)

@tsdorsey tsdorsey closed this as completed Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants