我正在尝试将当前可用于手机和触控点击包的应用程序快照化。我的应用程序使用缩略图程序,但以快照形式运行时出现权限错误,导致失败:
could not retrieve client config: "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.215\" (uid=1000 pid=15939 comm=\"./usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene -I /sn\") interface=\"com.canonical.Thumbnailer\" member=\"ClientConfig\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.Thumbnailer\" (uid=1000 pid=15963 comm=\"/usr/lib/x86_64-linux-gnu/thumbnailer/thumbnailer-\")" (using default values)
接下来是……
Thumbnailer: RequestImpl::dbusCallFinished(): D-Bus error: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.215" (uid=1000 pid=15939 comm="./usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene -I /sn") interface="com.canonical.Thumbnailer" member="GetArtistArt" error name="(unset)" requested_reply="0" destination="com.canonical.Thumbnailer" (uid=1000 pid=15963 comm="/usr/lib/x86_64-linux-gnu/thumbnailer/thumbnailer-")
我的 snapcraft.yml 如下所示:
confinement: strict
apps:
noson-app:
command: noson-launch
plugs: [unity7, opengl, home, network, network-bind, content]
parts:
noson-app:
source: https://github.com/janbar/noson-app.git
source-type: git
source-branch: master
plugin: cmake
configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
build-packages:
- build-essential
- cmake
- gettext
- intltool
- qtbase5-dev
- qttools5-dev
- qttools5-dev-tools
- qtdeclarative5-dev
- qtdeclarative5-dev-tools
stage-packages:
- ubuntu-sdk-libs
- qtubuntu-desktop
- qtmir-desktop
- mir-graphics-drivers-desktop
- qmlscene
- qml-module-qtsysteminfo
- qml-module-qt-labs-settings
- qml-module-qtmultimedia
- qtdeclarative5-ubuntu-content1
- qtdeclarative5-particles-plugin
- qtdeclarative5-qtmultimedia-plugin
- qtdeclarative5-qtquick2-plugin
- qtdeclarative5-ubuntu-thumbnailer0.1
- qtdeclarative5-ubuntu-ui-toolkit-plugin
- qtdeclarative5-window-plugin
- thumbnailer-service
- suru-icon-theme
- ubuntu-mobile-icons
任何能够解决此问题的帮助都将不胜感激!