V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
XuanYuan
V2EX  ›  macOS

[经验分享] Quicklook(空格预览)不正常的解决办法

  •  
  •   XuanYuan · 2019-03-15 09:34:22 +08:00 · 6060 次点击
    这是一个创建于 1866 天前的主题,其中的信息可能已经有所发展或是发生改变。
    前段时间莫名其妙的发现有些 PDF 文件不能正常快速预览,原本以为是 Markdown 导出软件的问题,今天无意间看到可以使用 qlmanage -r 来进行重置,试了一下竟然好了。

    顺手搜了下,发现不少人也遇到过类似问题但是很少有人提到这个办法,所以分享一下。
    5 条回复    2019-03-21 13:18:00 +08:00
    ngn999
        1
    ngn999  
       2019-03-15 09:51:37 +08:00 via iPhone
    如果这个问题反复发作,多个插件不能用,那多半是 homebrew 安装了 Python2,卸载就好
    ynyounuo
        2
    ynyounuo  
       2019-03-15 09:55:54 +08:00
    可以用 qlmanage -p -d{debug_level} {filename.ext} 来看看问题出在哪里
    比如:qlmanage -p -d1 nsfw.gif
    XuanYuan
        3
    XuanYuan  
    OP
       2019-03-15 15:26:51 +08:00
    @ngn999 #1
    @ynyounuo #2

    发现规律了:在微信聊天界面中发送的 PDF 就不能正常预览,Finder 中就可以。

    debug 信息如下:

    ```
    [DEBUG] Loading <QLGenerator PDF.qlgenerator>
    2019-03-15 15:23:50.635 qlmanage[94953:3169729] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9003, name = 'com.apple.coredrag'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2019-03-15 15:23:50.810 qlmanage[94953:3169729] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x14c1f, name = 'com.apple.tsm.portname'
    ```
    neutron
        4
    neutron  
       2019-03-18 11:34:33 +08:00
    @XuanYuan 请问

    “发现规律了:在微信聊天界面中发送的 PDF 就不能正常预览,Finder 中就可以。


    这个怎么解决呢,遇到了一样的问题,多谢!
    XuanYuan
        5
    XuanYuan  
    OP
       2019-03-21 13:18:00 +08:00
    @neutron #4 这个问题看来只能找微信来修了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5341 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:10 · PVG 17:10 · LAX 02:10 · JFK 05:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.