我已将一个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
如何避免错误?