Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: An AppArmor policy prevents this sender from sending this message to this recipient #2300

Open
Semnodime opened this issue Jan 21, 2022 · 11 comments
Labels
Linux Linux specific issue Snap Issues related to snap Unconfirmed Bug The bug is not confirmed by anyone else.

Comments

@Semnodime
Copy link

Flameshot Version

Flameshot v11.0.0 ()
Compiled with Qt 5.15.3

Installation Type

Snap from Snapcraft

Operating System type and version

Linux Mint 20 Cinnamon

Description

flameshot

->

Qt: Session management error: Could not open network socket
propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.263\" (uid=1000 pid=32914 comm=\"/snap/flameshot/180/usr/local/bin/flameshot \" label=\"snap.flameshot.flameshot (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=778 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.263\" (uid=1000 pid=32914 comm=\"/snap/flameshot/180/usr/local/bin/flameshot \" label=\"snap.flameshot.flameshot (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=778 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
"Object path cannot be empty"

Steps to reproduce

  1. Install Linux Mint 20 Cinnamon based
  2. Install snapd via apt
  3. Install flameshot via snap
  4. Run snap via flameshot in GnomeTerminal

Screenshots or screen recordings

No response

System Information

s.above
Window Manager: Xorg

@Semnodime Semnodime added the Unconfirmed Bug The bug is not confirmed by anyone else. label Jan 21, 2022
@mmahmoudian mmahmoudian added the Linux Linux specific issue label Jan 21, 2022
@borgmanJeremy
Copy link
Contributor

Is there actually a problem?

@mmahmoudian
Copy link
Member

@borgmanJeremy I thought we have had similar issue before but I couldn't find it. I googled and got to a thread which led me to think that we are missing the dbus connection in documentation. What am I missing?

@SubodhDahal
Copy link

I have the problem when I run flameshot gui and try to copy the selected screenshot into the clipboard. This causes the screenshot to not be copied to the clipboard. However, when I run just flameshot and click on the flameshot icon in the try then I can copy the screenshot to clipboard. I am also running Flameshot v11.0.0 installed via Snap on Ubuntu 21. I tried the AppImage version as well but I have the same problem, although the error message is different:

QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setCompositionMode: Painter not active
QPainter::translate: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setBrush: Painter not active
Failed to get information about the latest version.  "Host api.github.com not found"

@mmahmoudian
Copy link
Member

@SubodhDahal Did you forget to add the line about AppArmor? I cannot understand how your comment is related to this issue!

@mmahmoudian mmahmoudian added the Snap Issues related to snap label May 10, 2022
@mmahmoudian
Copy link
Member

this is most probably related to or identical to #1622 which as far as I understand boils down to https://snapcraft.io/docs/dbus-interface

@SubodhDahal
Copy link

@mmahmoudian Yes, I had the same error as OP while using snap. Sorry, if it was not clear previously.

I had the same experience even when using the AppImage version too. But the error message was different. Not sure if it was due to the same underlying problem which might've been logged differently in snap and AppImage. That is why I included the error log from AppImage too.

@pblanton

This comment was marked as off-topic.

@mmahmoudian
Copy link
Member

@pblanton read #2594

@pblanton

This comment was marked as off-topic.

@borgmanJeremy

This comment was marked as off-topic.

@SubodhDahal
Copy link

I have the problem when I run flameshot gui and try to copy the selected screenshot into the clipboard. This causes the screenshot to not be copied to the clipboard

UPDATE: I am not having the problem anymore on Flameshot v12.0.0 running on Ubuntu 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Linux specific issue Snap Issues related to snap Unconfirmed Bug The bug is not confirmed by anyone else.
Projects
None yet
Development

No branches or pull requests

5 participants