What is the needed permission to open file explorer from my snap?

I succesfully built and released my snap to the snap store. When I downloaded the app to try it (or even when I ran it locally using sudo snap install my-snap-name_0.1_amd64.snap --dangerous --devmode, I couldn’t open file explorer from within the snap.

The app is a Flutter app that uses the url_launcher plugin to launch file explorer. When I build and run the app using android studio and try to open file explorer programmatically from the app, it works normally and explorer opens.

But in the snap version, the plugin’s code reports (by a boolean) that the launch is successful, but the file explorer does not actually opens.

the c++ code that opens the explorer is:


// Called when a URL should launch.
static FlMethodResponse* launch(FlUrlLauncherPlugin* self, FlValue* args) {
  g_autoptr(GError) error = nullptr;
  g_autofree gchar* url = get_url(args, &error);
  if (url == nullptr) {
    return FL_METHOD_RESPONSE(fl_method_error_response_new(
        kBadArgumentsError, error->message, nullptr));
  }

  FlView* view = fl_plugin_registrar_get_view(self->registrar);
  gboolean launched;
  if (view != nullptr) {
    GtkWindow* window = GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(view)));
    launched = gtk_show_uri_on_window(window, url, GDK_CURRENT_TIME, &error);
  } else {
    launched = g_app_info_launch_default_for_uri(url, nullptr, &error);
  }
  if (!launched) {
    g_autofree gchar* message =
        g_strdup_printf("Failed to launch URL: %s", error->message);
    return FL_METHOD_RESPONSE(
        fl_method_error_response_new(kLaunchError, message, nullptr));
  }

  g_autoptr(FlValue) result = fl_value_new_bool(TRUE);
  return FL_METHOD_RESPONSE(fl_method_success_response_new(result));
}

I already opened a github issue here but I was told that the problem is not on the flutter side but on the snapcraft developer’s side because the app is running in a container and the container is proxying the request to open the explorer to the underlying OS.

So how can I remove the restriction (if there is one) that is causing the problem?

note: I ran the snap version from the terminal to see if there are any error thrown, but there are none (except for those translation errors), more logs are available in the github issue above

p.s.: I didn’t know if this should be under snap or snapcraft category so sorry for any inconvenience.

Try to run it with snappy-debug attached. It’ll give you an idea of what’s necessary. I suspect you might have forgot to add the desktop plug.

@phoenix thanks for replying, I tried the debugging steps there but couldn’t figure out if there is an error, it seems there is no error or privacy policy violation, for example, I did a minimal operation on the app to make it open file explorer (which will fail), and tailed the logs using sudo sysctl -w kernel.printk_ratelimit=0 ; journalctl --follow | grep audit, and as you can see in the logs below there is no apparmor denials:

sudo sysctl -w kernel.printk_ratelimit=0 ; journalctl --follow | grep audit
kernel.printk_ratelimit = 0
Sep 18 13:22:21 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1107 audit(1663496541.079:3412052): pid=905 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="ALLOWED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.628" pid=568019 label="snap.batch-image-editor.batch-image-editor" peer_pid=568028 peer_label="unconfined"
Sep 18 13:22:21 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1420 audit(1663496541.079:3412053): subj_apparmor=unconfined
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx audit[568076]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=568076 comm="photo_editor" exe="/snap/batch-image-editor/x1/bin/photo_editor" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7ff47157cc7f code=0x7ffc0000
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx audit[568076]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=568076 comm="photo_editor" exe="/snap/batch-image-editor/x1/bin/photo_editor" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7ff47157cc7f code=0x7ffc0000
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx audit[568076]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=568076 comm="photo_editor" exe="/snap/batch-image-editor/x1/bin/photo_editor" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7ff47157cc7f code=0x7ffc0000
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx audit[568076]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=568076 comm="photo_editor" exe="/snap/batch-image-editor/x1/bin/photo_editor" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7ff47157cc7f code=0x7ffc0000
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1326 audit(1663496554.963:3412054): auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=568076 comm="photo_editor" exe="/snap/batch-image-editor/x1/bin/photo_editor" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7ff47157cc7f code=0x7ffc0000
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1326 audit(1663496554.963:3412055): auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=568076 comm="photo_editor" exe="/snap/batch-image-editor/x1/bin/photo_editor" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7ff47157cc7f code=0x7ffc0000
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1326 audit(1663496554.963:3412056): auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=568076 comm="photo_editor" exe="/snap/batch-image-editor/x1/bin/photo_editor" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7ff47157cc7f code=0x7ffc0000
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1326 audit(1663496554.963:3412057): auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=568076 comm="photo_editor" exe="/snap/batch-image-editor/x1/bin/photo_editor" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7ff47157cc7f code=0x7ffc0000
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx audit[568076]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/sys/vm/max_map_count" pid=568076 comm="photo_editor" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:34 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496554.967:3412058): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/sys/vm/max_map_count" pid=568076 comm="photo_editor" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="gmain" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/etc/fstab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/run/mount/utab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.268:3412059): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="gmain" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.268:3412060): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/etc/fstab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.268:3412061): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.268:3412062): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/run/mount/utab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.552:3412063): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/run/mount/utab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.556:3412064): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/run/mount/utab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/stdout" pid=568211 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[905]: USER_AVC pid=905 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="ALLOWED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.628" pid=568211 label="snap.batch-image-editor.batch-image-editor" peer_pid=568028 peer_label="unconfined"
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit: MAC_TASK_CONTEXTS subj_apparmor=unconfined
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.564:3412065): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/stdout" pid=568211 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1107 audit(1663496569.564:3412066): pid=905 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="ALLOWED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.628" pid=568211 label="snap.batch-image-editor.batch-image-editor" peer_pid=568028 peer_label="unconfined"
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1420 audit(1663496569.564:3412067): subj_apparmor=unconfined
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/stdout" pid=568211 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.572:3412068): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/stdout" pid=568211 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/run/mount/utab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.604:3412069): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.604:3412070): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/run/mount/utab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.644:3412071): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/568211/mountinfo" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx audit[568211]: AVC apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/run/mount/utab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Sep 18 13:22:49 haidar-HP-Laptop-15-bs1xx kernel: audit: type=1400 audit(1663496569.648:3412072): apparmor="ALLOWED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/run/mount/utab" pid=568211 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

And here is snapcraft.yaml:

name: batch-image-editor
version: 0.1.0
summary: Batch Image Editor
description: Basic image editor that can generate images using text from text files in batches.

confinement: strict
base: core18
grade: stable

slots:
  dbus-batch-image-editor:
    interface: dbus
    bus: session
    name: org.zlimits.batch_image_editor

apps:
  batch-image-editor:
    command: photo_editor
    extensions: [flutter-stable]
    plugs:
      - network
      - home
      - desktop
    slots:
      - dbus-batch-image-editor
parts:
  zenity:
    plugin: nil
    stage-packages:
      - zenity
  batch-image-editor:
    after:
      - zenity
    source: .
    plugin: flutter
    flutter-target: lib/main.dart

@phoenix this is not the problem, file picker opens normally, but after you press file>generate and then you choose somewhere to save the image, then the app asks you if you want to view the folder where image was saved, here is the problem. Outside the snap container the folder opens normally, but in the snap container when you click yes nothing happens.

So as minimal steps to reproduce:

  • open the snap app
  • press file>generate
  • wait for the prompt to appear, then click yes
  • nothing happens

there is a ton of denials (… denied_mask="r"), but you seem to have installed the snap with --devmode which explicitly turns denials into allowed actions and just logs them …

if you use snappy-debug as suggested above, it takes this into account and still gives proper suggestions for interfaces to enable and connect in your snap based on these messages.

@ogra that’s true I was trying the debugging steps on the locally installed snap using --dangerous --devmode , I will retry them on the official snap and hope this will give me the solution, thanks alot :slight_smile:

Locally, you should try with --dangerous --jailmode on Ubuntu based systems.

@ogra @phoenix I tried what you suggested (applying the suggested fixes from the logs by adding the suggested plugs):

  • I updated my snapcraft.yaml to this:
name: batch-image-editor
version: 0.1.0
summary: Batch Image Editor
description: Basic image editor that can generate images using text from text files in batches.

confinement: strict
base: core18
grade: stable

slots:
  dbus-batch-image-editor:
    interface: dbus
    bus: session
    name: org.zlimits.batch_image_editor

apps:
  batch-image-editor:
    command: photo_editor
    extensions: [flutter-stable]
    plugs:
      - network
      - home
      - opengl
      - unity7
      - desktop
      - desktop-legacy
      - mount-control
      - mount-observe
      - network-control
      - steam-support
      - hostname-control
    slots:
      - dbus-batch-image-editor
    environment:
      GTK_USE_PORTAL: "1"
parts:
  zenity:
    plugin: nil
    stage-packages:
      - zenity
  batch-image-editor:
    after:
      - zenity
    source: .
    plugin: flutter
    flutter-target: lib/main.dart
  • I installed the snap locally using: sudo snap install batch-image-editor_0.1.0_amd64.snap --dangerous --jailmode
  • made sure the connections are correct:
snap connections batch-image-editor 
Interface                 Plug                                 Slot                                        Notes
content[gnome-3-28-1804]  batch-image-editor:gnome-3-28-1804   gnome-3-28-1804:gnome-3-28-1804             -
content[gtk-3-themes]     batch-image-editor:gtk-3-themes      gtk-common-themes:gtk-3-themes              -
content[icon-themes]      batch-image-editor:icon-themes       gtk-common-themes:icon-themes               -
content[sound-themes]     batch-image-editor:sound-themes      gtk-common-themes:sound-themes              -
dbus                      -                                    batch-image-editor:dbus-batch-image-editor  -
desktop                   batch-image-editor:desktop           :desktop                                    -
desktop-legacy            batch-image-editor:desktop-legacy    :desktop-legacy                             -
gsettings                 batch-image-editor:gsettings         :gsettings                                  -
home                      batch-image-editor:home              :home                                       -
hostname-control          batch-image-editor:hostname-control  -                                           -
mount-control             batch-image-editor:mount-control     -                                           -
mount-observe             batch-image-editor:mount-observe     -                                           -
network                   batch-image-editor:network           :network                                    -
network-control           batch-image-editor:network-control   -                                           -
opengl                    batch-image-editor:opengl            :opengl                                     -
steam-support             batch-image-editor:steam-support     -                                           -
unity7                    batch-image-editor:unity7            :unity7                                     -
wayland                   batch-image-editor:wayland           :wayland                                    -
x11                       batch-image-editor:x11               :x11 
  • Ran the app with the exact minimal steps above and watched the logs:
sudo journalctl --output=short --follow --all | sudo snappy-debug
[sudo] password for haidar: 
kernel.printk_ratelimit = 0
= AppArmor =
Time: Sep 18 17:23:37
Log: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/com/sillyapps/photo_editor" interface="org.freedesktop.DBus.Properties" member="GetAll" name=":1.38" mask="receive" pid=691804 label="snap.batch-image-editor.batch-image-editor" peer_pid=2494 peer_label="unconfined"
DBus access

= Seccomp =
Time: Sep 18 17:23:37
Log: auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=691804 comm="photo_editor" exe="/snap/batch-image-editor/x4/bin/photo_editor" sig=0 arch=c000003e 203(sched_setaffinity) compat=0 ip=0x7fbdf52e1c7f code=0x50000
Syscall: sched_setaffinity
Suggestion:
* add 'process-control' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:37
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/sys/vm/max_map_count" pid=691804 comm="photo_editor" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /proc/sys/vm/max_map_count (read)
Suggestions:
* adjust program to not access '@{PROC}/sys/vm/max_map_count'
* add 'system-observe' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mountinfo" pid=692039 comm="gmain" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mountinfo (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mountinfo'
* add one of 'mount-control, mount-observe, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/etc/fstab" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /etc/fstab (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
* add 'mount-observe' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mountinfo" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mountinfo (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mountinfo'
* add one of 'mount-control, mount-observe, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mounts" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mounts (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mounts'
* add one of 'mount-control, mount-observe, network-control, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/etc/fstab" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /etc/fstab (read)
Suggestions:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
* add 'mount-observe' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mountinfo" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mountinfo (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mountinfo'
* add one of 'mount-control, mount-observe, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mounts" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mounts (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mounts'
* add one of 'mount-control, mount-observe, network-control, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mountinfo" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mountinfo (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mountinfo'
* add one of 'mount-control, mount-observe, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mounts" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mounts (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mounts'
* add one of 'mount-control, mount-observe, network-control, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mountinfo" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mountinfo (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mountinfo'
* add one of 'mount-control, mount-observe, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mounts" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mounts (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mounts'
* add one of 'mount-control, mount-observe, network-control, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/stdout" pid=692039 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /stdout (read)
Suggestion:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mountinfo" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mountinfo (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mountinfo'
* add one of 'mount-control, mount-observe, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mounts" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mounts (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mounts'
* add one of 'mount-control, mount-observe, network-control, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mountinfo" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mountinfo (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mountinfo'
* add one of 'mount-control, mount-observe, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mounts" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mounts (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mounts'
* add one of 'mount-control, mount-observe, network-control, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mountinfo" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mountinfo (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mountinfo'
* add one of 'mount-control, mount-observe, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mounts" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mounts (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mounts'
* add one of 'mount-control, mount-observe, network-control, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mountinfo" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mountinfo (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mountinfo'
* add one of 'mount-control, mount-observe, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/proc/692039/mounts" pid=692039 comm="zenity" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
File: /proc/692039/mounts (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mounts'
* add one of 'mount-control, mount-observe, network-control, steam-support' to 'plugs'

= AppArmor =
Time: Sep 18 17:23:44
Log: apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.710" pid=692039 label="snap.batch-image-editor.batch-image-editor" peer_pid=692047 peer_label="unconfined"
DBus access
Suggestion:
* try adding 'hostname-control' to 'plugs'

^C
kernel.printk_ratelimit = 0

I couldn’t find (after search) how to solve adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON

Plus the file explorer is still not opening, and surpisingly, all the denial logs above are produced before I try to open the file explorer, since after I press the button to open it, no logs are generated.

The c++ function that tries to open the explorer is gtk_show_uri_on_window

Do you know what should I do?

A lot of slots are empty. Try after connecting to the slots. For e.g:-

snap connect batch-image-editor:hostname-control :hostname-control

Okay I connected most of the plugs, some of them couldn’t be connected:

haidar@haidar-HP-Laptop-15-bs1xx:~$ snap connections batch-image-editor 
Interface                 Plug                                 Slot                                        Notes
content[gnome-3-28-1804]  batch-image-editor:gnome-3-28-1804   gnome-3-28-1804:gnome-3-28-1804             -
content[gtk-3-themes]     batch-image-editor:gtk-3-themes      gtk-common-themes:gtk-3-themes              -
content[icon-themes]      batch-image-editor:icon-themes       gtk-common-themes:icon-themes               -
content[sound-themes]     batch-image-editor:sound-themes      gtk-common-themes:sound-themes              -
dbus                      -                                    batch-image-editor:dbus-batch-image-editor  -
desktop                   batch-image-editor:desktop           :desktop                                    -
desktop-legacy            batch-image-editor:desktop-legacy    :desktop-legacy                             -
gsettings                 batch-image-editor:gsettings         :gsettings                                  -
home                      batch-image-editor:home              :home                                       -
hostname-control          batch-image-editor:hostname-control  :hostname-control                           manual
mount-control             batch-image-editor:mount-control     -                                           -
mount-observe             batch-image-editor:mount-observe     :mount-observe                              manual
network                   batch-image-editor:network           :network                                    -
network-control           batch-image-editor:network-control   :network-control                            manual
opengl                    batch-image-editor:opengl            :opengl                                     -
process-control           batch-image-editor:process-control   :process-control                            manual
steam-support             batch-image-editor:steam-support     :steam-support                              manual
system-observe            batch-image-editor:system-observe    :system-observe                             manual
unity7                    batch-image-editor:unity7            :unity7                                     -
wayland                   batch-image-editor:wayland           :wayland                                    -
x11                       batch-image-editor:x11               :x11                                        -
haidar@haidar-HP-Laptop-15-bs1xx:~$ sudo snap connect batch-image-editor:mount-control :mount-control
error: cannot perform the following tasks:
- Connect batch-image-editor:mount-control to snapd:mount-control (cannot connect plug "mount-control" of snap "batch-image-editor": mount-control "mount" attribute must be a list of dictionaries)

Now the denial logs are way shorter, but the app stil doesn’t work, here are the denial logs:

haidar@haidar-HP-Laptop-15-bs1xx:~$ sudo journalctl --output=short --follow --all | sudo snappy-debug
kernel.printk_ratelimit = 0
= AppArmor =
Time: Sep 18 18:11:23
Log: apparmor="DENIED" operation="capable" profile="/snap/snapd/16778/usr/lib/snapd/snap-confine" pid=714317 comm="snap-confine" capability=12  capname="net_admin"
Capability: net_admin
Suggestions:
* adjust program to not require 'CAP_NET_ADMIN' (see 'man 7 capabilities')
* add one of 'bluetooth-control, firewall-control, netlink-audit, netlink-connector, network-control, qualcomm-ipc-router' to 'plugs'
* do nothing if using systemd utility (eg, timedatectl): https://forum.snapcraft.io/t/managing-time-date-and-timezone-in-ubuntu-core/408/44
* do nothing (https://launchpad.net/bugs/1465724)

= AppArmor =
Time: Sep 18 18:11:34
Log: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/com/sillyapps/photo_editor" interface="org.freedesktop.DBus.Properties" member="GetAll" name=":1.38" mask="receive" pid=714317 label="snap.batch-image-editor.batch-image-editor" peer_pid=2494 peer_label="unconfined"
DBus access

= AppArmor =
Time: Sep 18 18:11:41
Log: apparmor="DENIED" operation="open" profile="snap.batch-image-editor.batch-image-editor" name="/stdout" pid=714546 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /stdout (read)
Suggestion:
* adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON

I still don’t know what is this : adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON

and there are no errors after interacting with the app:

haidar@haidar-HP-Laptop-15-bs1xx:~$ batch-image-editor 

(photo_editor:714317): Gtk-WARNING **: 18:11:33.497: Theme parsing error: gtk.css:1413:23: 'font-feature-settings' is not a valid property name

(photo_editor:714317): Gtk-WARNING **: 18:11:33.500: Theme parsing error: gtk.css:3286:25: 'font-feature-settings' is not a valid property name

(photo_editor:714317): Gtk-WARNING **: 18:11:33.501: Theme parsing error: gtk.css:3748:23: 'font-feature-settings' is not a valid property name
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'


I am installing the snap by sudo snap install batch-image-editor_0.1.0_amd64.snap --dangerous --jailmode

Do you have an idea what could still be wrong?

Some of those interfaces will require permission from reviewers for autoconnect and you should try to avoid them as much as possible. If I were you, I’d rather try to edit the source code to my needs. I’m currently busy on one of my own projects, so I hope someone else can step in to help you.

1 Like