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

Installed plugin, but isn't working #2

Open
kayserifserif opened this issue Aug 12, 2017 · 8 comments
Open

Installed plugin, but isn't working #2

kayserifserif opened this issue Aug 12, 2017 · 8 comments

Comments

@kayserifserif
Copy link

I've tried installing via both brew cask install quicklook-pat and the .pkg installer, but the pattern doesn't show up in QuickLook.

Running on macOS Sierra 10.12.5.

@ruction
Copy link
Member

ruction commented Aug 15, 2017

Are you sure the plugin installed successfully? What happens if you open a .pat-File for example in "/Adobe Photoshop... /Presets/" with Quicklook?

@kayserifserif
Copy link
Author

screen shot 2017-08-16 at 8 57 57 am

screen shot 2017-08-16 at 8 55 33 am

@theoriginalgri
Copy link
Member

It looks like you have some other plugin which picks up the file type first to display the textual contents. Normally macOS does not display the textual contents of a file if it's unknown.

Please check the Info.plist files of other plugins in /Library/QuickLook and ~/Library/QuickLook. Which might contain the following or similar:

<key>LSItemContentTypes</key>
			<array>
				<string>public.data</string>
				<string>public.item</string>
			</array>

@schroef
Copy link

schroef commented Dec 14, 2017

I got this error using it on OSX 10.11.6
I did a qlmanage -d1 -p PATTERNFILE

Testing Quick Look preview with files:
	desktop/wg_fabric_patterns_sample.pat
[DEBUG] Preview test for desktop/wg_fabric_patterns_sample.pat -- file:///Users/romboutversluijs/. Content type UTI: dyn.ah62d4rv4ge81a2py
[DEBUG] file:///Applications/MAXON/CINEMA%204D%20R17/CINEMA%204D.app/Contents/Library/QuickLook/CINEMA%204D.qlgenerator/ might shadow a plug-in with the same identifier and version (<QLGenerator /Applications/Adobe After Effects CC 2015/Plug-ins/MAXON CINEWARE AE/(CINEWARE Support)/lite/CINEMA 4D Lite.app/Contents/Library/QuickLook/CINEMA 4D.qlgenerator>)
[DEBUG] Previewing file:///Users/romboutversluijs/Desktop/wg_fabric_patterns_sample.pat. Content type UTI: dyn.ah62d4rv4ge81a2py. Generator used: <QLGenerator /Library/QuickLook/QLStephen.qlgenerator>
[DEBUG] Loading <QLGenerator /Library/QuickLook/QLStephen.qlgenerator>
[DEBUG] Previewing file:///Users/romboutversluijs/Desktop/wg_fabric_patterns_sample.pat did not produce anything
[DEBUG] Thumbnailing desktop/wg_fabric_patterns_sample.pat -- file:///Users/romboutversluijs/ - type: dyn.ah62d4rv4ge81a2py - generator: <QLGenerator /Library/QuickLook/QLStephen.qlgenerator> (try #1)
[DEBUG] Thumbnailing file:///Users/romboutversluijs/Desktop/wg_fabric_patterns_sample.pat. Content type UTI: dyn.ah62d4rv4ge81a2py. Generator used: <QLGenerator /Library/QuickLook/QLStephen.qlgenerator>
[DEBUG] Thumbnailing file:///Users/romboutversluijs/Desktop/wg_fabric_patterns_sample.pat did not produce anything
2017-12-14 00:07:18.186 qlmanage[11197:400532] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa00b, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-14 00:07:18.231 qlmanage[11197:400532] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xc63f, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-14 00:07:18.234 qlmanage[11197:400532] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x490f, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-14 00:07:18.234 qlmanage[11197:400532] void __CFPasteboardSetup() : Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
MBP-Schroef:~ Admin$ 

@theoriginalgri
Copy link
Member

It seems our plugin was asked by the system to create a preview.

Make sure it is installed in /Library/QuickLook/PatternQuickLook.qlgenerator.

Try to reload all plugins using qlmanage -r.

If it still does not work, try removing QLStephen temporarily since the log you posted seems to try this plugin instead.

@schroef
Copy link

schroef commented Dec 14, 2017

How come they are conflicting. *.pat is different file type of what qlstephen uses right? Thats for showing document types containing strings / text

Jep thats it! Ive been looking a bit into this ql and would like to add sketchup to this using a thumbnail which is aside of the file. GOt to the point of making a file in Xcode but i think i need custom code to check file aside of the flle. Do you know some info about this?

@theoriginalgri
Copy link
Member

The decision which plugin will be used for a file does not happen from the file extension.

QLStephen creates a preview for every file type and seems to be asked first by the system :(

@schroef
Copy link

schroef commented Dec 16, 2017

i dropped it it, it doesnt add tht much. I didnt see any difference and it wasnt working on files it said it worked. Today i alsao was told that using ql plugins in this mather is supported nomore. Yet they still work???

most apps have the quicklook internally now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants