It seems like Loupe can't open files from certain URIs, and it appears that e.g. Nautilus gives Loupe a URI instead of a filesystem path. From my testing, 'file://' works well while 'sftp://' does not. The journal DOES NOT seem to immediately imply this is Apparmor causing issues, at least not to my layman eyes.
I am using Loupe version 50.0-0ubuntu2 and Apparmor version 6.0.0~alpha1-0ubuntu4, on Ubuntu 26.10. Normal behaviour, when everything works well, has journal: nov 09 01:41:21 gammelburken dbus-broker[3295]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/gtk/vfs/mounttracker" interface="org.gtk.vfs.MountTracker" member="ListMountableInfo" mask="send" name=":1.20" label="loupe" peer_label="unconfined" nov 09 01:41:21 gammelburken dbus-broker[3295]: A security policy denied :1.242 to send method call /org/gtk/vfs/mounttracker:org.gtk.vfs.MountTracker.ListMountableInfo to :1.20. nov 09 01:41:22 gammelburken kernel: audit: type=1400 audit(1794184882.135:1931): apparmor="DENIED" operation="open" class="file" profile="loupe" name="/proc/34405/cgroup" pid=34405 comm="loupe" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 nov 09 01:41:22 gammelburken kernel: audit: type=1400 audit(1794184882.136:1932): apparmor="DENIED" operation="open" class="file" profile="loupe" name="/etc/nsswitch.conf" pid=34405 comm="blocking-2" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 nov 09 01:41:22 gammelburken kernel: audit: type=1400 audit(1794184882.136:1933): apparmor="DENIED" operation="open" class="file" profile="loupe" name="/etc/passwd" pid=34405 comm="blocking-2" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 This is the behaviour when opening any file through its filesystem path (e.g. '/run/user/1000/gvfs/sftp:host=...' for SFTP drives), and local files through Nautilus or a 'file://' URI. When opening a remote file through Nautilus or a 'sftp://' URI, Loupe throws an error and the journal reads: nov 09 01:48:54 gammelburken dbus-broker[3295]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/gtk/vfs/mounttracker" interface="org.gtk.vfs.MountTracker" member="ListMountableInfo" mask="send" name=":1.20" label="loupe" peer_label="unconfined" nov 09 01:48:54 gammelburken dbus-broker[3295]: A security policy denied :1.250 to send method call /org/gtk/vfs/mounttracker:org.gtk.vfs.MountTracker.ListMountableInfo to :1.20. nov 09 01:48:55 gammelburken loupe[34821]: 2026-11-09T00:48:55.260095Z ERROR loupe::file_model:85: Failed to obtain information for sorting 'sftp://.../image.png': Operation not supported -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2172982 Title: Loupe fails to load images from a smartphone USB-connected due to apparmor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2172982/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
