如何在Mac中使用“ qlmanage”查看网址的快速预览?

时间:2018-10-12 13:32:16

标签: bash macos quicklook

我已将一个webloc文件从Safari拖到路径~/Downloads/Google.webloc。 当我转到Finder并在该文件上按空格键时,它将提供快速查看视图,而没有任何错误。但是,当我在终端上执行同样的操作时,会出现错误。

qlmanage -p "~/Downloads/Google.webloc"
# or,
cd ~/Downloads
qlmanage -p Google.webloc

此操作失败,并显示以下错误:

$ qlmanage -p Google.webloc 
Testing Quick Look preview with files:
    Google.webloc
2018-10-12 09:26:25.241 qlmanage[47305:8178915] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8807, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2018-10-12 09:26:25.242 qlmanage[47305:8178915] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions

如何避免错误?

0 个答案:

没有答案