Hello,
My snap (Gnome-Referencer) runs in devmode. From this app, you can trigger to open a pdf document with the default pdf viewer. However, this functionality doesn’t works :
I got the following debug message : Exception: No application is registered as handling this file.
It seems that the program call the function Gio::AppInfo::launch_default_for_uri() to open this file (but I am not sure, I am not the author of this software nor familiar with the language used).
However, this functionality works well, if I build the software from its source. Thus it comes from my snap package. Moreover, this functionality is very important as this software is designed to manage a bibliography.
I was wondering if some plugs are missing in my yaml file… Have you any idea/suggestions ?
See the plugs I tried bellow
apps
plugs:
- x11
- home
- desktop
- unity7
# - network-control
# - mount-observe
# - gsettings
- network
- desktop-legacy
- wayland
# - classic-support
Also, I check logs with the snap-debug program and I got many massages like :
= AppArmor =
Time: Jul 22 00:21:21
Log: apparmor=“ALLOWED” operation=“dbus_method_call” bus=“session” path="/org/gnome/GConf/Client" interface=“org.gnome.GConf.Client” member=“Notify” name=":1.98" mask=“receive” pid=25901 label=“snap.referencer.referencer” peer_pid=15879 peer_label=“unconfined”
DBus access
= AppArmor =
Time: Jul 22 00:21:21
Log: apparmor=“ALLOWED” operation=“dbus_method_call” bus=“session” path="/org/gnome/GConf/Database/0" interface=“org.gnome.GConf.Database” member=“Set” mask=“send” name=“org.gnome.GConf” pid=25901 label=“snap.referencer.referencer” peer_pid=15879 peer_label=“unconfined”
DBus access
= AppArmor =
Time: Jul 22 00:01:55
Log: apparmor=“ALLOWED” operation=“open” profile=“snap.referencer.referencer” name="/snap/core/4917/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21" pid=25901 comm=“referencer” requested_mask=“r” denied_mask=“r” fsuid=1000 ouid=0
File: /snap/core/4917/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 (read)
Suggestion:
- adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
…
Thank you for your help.