2

我在 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 ,但得到了同样的错误。

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
4

0 回答 0