应用程序防护策略可防止抖动捕捉

时间:2020-08-31 11:34:45

标签: linux flutter

我正在构建my opensource flutter app的快照版本。 运行snap install connectron以从快照存储释放后,一切正常。

运行connectron返回

Gtk-Message: 12:19:46.398: Failed to load module "appmenu-gtk-module"
Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.693" (uid=1000 pid=74052 comm="/snap/connectron/3/bin/Connectron " label="snap.connectron.connectron (enforce)") interface="org.freedesktop.DBus" member="RequestName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)

这是我最新安装的Pop!OS。

在进一步的研究中,我可以通过将目录更改为bin并执行它来轻松执行程序:

robert@pop-os:~$ cd /snap/connectron/3/bin
robert@pop-os:/snap/connectron/3/bin$ ./Connectron

1 个答案:

答案 0 :(得分:0)

https://forum.snapcraft.io/t/failed-to-register-gdbus-error-org-freedesktop-dbus-error-accessdenied/20370/2

假设您有一个名为sasomtam的应用,则应添加以下内容:

slots:
  dbus-sasomtam:
    interface: dbus
    bus: session
    name: com.shanuy.sasomtam

apps:
  sasomtam:
    ... # the rest of your app definition
    slots:
      - dbus-sasomtam