沙箱自定义qlgenerator(快速查看)插件

Lak*_*hmi 12 macos plugins cocoa quicklook

如何在小牛上沙盒快速查看插件?

目前获取以下错误消息:

2014-04-14 16:26:50.507 qlmanage[5601:303] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8b13, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.

2014-04-14 16:26:50.512 qlmanage[5601:303] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x3f0f, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.

2014-04-14 16:26:50.512 qlmanage[5601:303] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
Run Code Online (Sandbox Code Playgroud)

以下权利是在Xcode的"代码签名权利"构建设置中定义的,仍然在上面的错误消息中观察到:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.security.app-sandbox</key>
    <true/>
    <key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
    <array>
        <string>com.apple.CFPasteboardClient</string>
        <string>com.apple.tsm.portname</string>
    </array>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)

小智 -1

Quicklook 插件不支持权利。

您可以尝试手动修改沙箱配置文件并尝试更改规则。

用于快速查看的沙盒配置文件位于/usr/share/sandbox您可以检查quicklook-satellite.sbquicklookd.sb配置文件的位置。

我希望这些信息可以帮助您。

我的 Outlook 2011 Quicklook 插件遇到一些问题,我解决了修改 uicklook-sa​​tellite.sb

您可以帮忙看一下这个文档:FGOUTLOOK2011Manual.pdf

  • 这是否会导致几乎不可能分发插件,因为您不能真正要求人们修改他们的“/usr/share/sandbox/”文件? (2认同)