QLabel :: setOpenExternalLinks是否有在SNAP安装中使用的解决方法?

时间:2017-05-11 12:16:02

标签: qt snapcraft

我在Linux上的QT应用程序中使用QLabel作为超链接。

QLabel *link = new QLabel();
link->setOpenExternalLinks(true);
link->setText("<a href='http://www.company.com'>Company</a>");

一切正常,除非我通过SNAPCRAFT安装应用程序时我在点击标签时出现以下错误。

Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.SafeLauncher was not provided by any .service files

是否已针对该问题采取解决方法,或者我是否需要在snapcraft.yaml中指定插件?

apps:
  animationmaker:
    command: desktop-launch AnimationMaker
    plugs: [x11,home,unity7]

编辑:

我已经尝试使用snapd-xdg-open,如上所述here,但会出现同样的错误。

parts:  
  snapd-xdg-open:
    source: https://github.com/ubuntu-core/snapd-xdg-open.git
    plugin: copy
    files:
      data/xdg-open: bin/xdg-open
    stage-packages:
      - dbus

0 个答案:

没有答案