is it possible to get ksnip auto-connected to network-observe and network-manager-observe?
Ksnip is a screenshot and annotation tool and allows uploading screenshots and images to Imgur.com, for that we use those two observers.
The strange think is that it work and we only came to ask for the auto-connect because the console is spammed with:
Could not create AF_NETLINK socket (Permission denied)
Connection those two silences the output. Also interesting, I have seen this message only on Ubuntu, on my OpenSUSE it doesn’t appear.
Regarding the network manager, we don’t access any network configuration directly, it’s probably one of the Qt components, probably QNetworkAccessManager which we use to send the request to imgur.com
The program works fine without the plugs…
The AF_NETLINK issue is solved by including the network-observe plug (appartently the network one is not sufficient).
Qt has a few different ways to detect network status. One uses network-manager and another, as of 5.11 requires network-observe (another does not require either).
@damir - I’m inclined to vote +1 for this but curious why your application is using both methods?
Not sure why both are needed, as @LyzardKing said, we were trying to silence error messages written to the console and as far as I understand, adding both silenced that errors above. Maybe we could try removing one of them and see if it’s still working.
Network related we use the QNetworkAccessManager and from there the post method and the finished slot. Nothing special to be honest.
Another think that we do is opening Urls in the default browser (imgurg responses), but that is probably not related?
I tried, and it needs both plugs to correctly silence the messages.
The network-observe is needed to silence the AF_NETLINK log,
and network-manager-observe is needed for the apparmor log, as nored in the previous messages.
Yes, as @LyzardKing wrote, he tried with only one at the time and that was not enough to silence the alarms. Only enabling both did silence the alarms.
@jdstrand@maxiberta@damir
I tested with the new beta version of snapd and it seems to work without the additional plugs.
So simply using network is fine now…