Polari fails to build due to lack of permissions to access Telephaty dbus
This is with Nightly Builder, and it works in regular CLI flatpak build, so most probably Builder failing to provide some finish-args.
Here's the run output:
(flatpak build:28400): flatpak-DEBUG: Opening user flatpak installation at path /home/csoriano/.local/share/flatpak
(flatpak build:28400): flatpak-DEBUG: No installations directory in /etc/flatpak/installations.d. Skipping
(flatpak build:28400): flatpak-DEBUG: Allowing host-fs access
(flatpak build:28400): flatpak-DEBUG: Allowing x11 access
(flatpak build:28400): flatpak-DEBUG: Allowing wayland access
(flatpak build:28400): flatpak2-DEBUG: bwrap args '--symlink usr/lib /lib --symlink usr/bin /bin --ro-bind '/lost+found' '/lost+found' --ro-bind /usr /usr --ro-bind /root /root --bind /run /run --symlink usr/lib64 /lib64 --ro-bind /etc /etc --ro-bind /srv /srv --ro-bind /dev /dev --bind /var /var --ro-bind /opt /opt --ro-bind /sys /sys --ro-bind /mnt /mnt --ro-bind /boot /boot --ro-bind /home /home --ro-bind /media /media --symlink usr/sbin /sbin --ro-bind /proc /proc --bind /tmp /tmp --bind /run/user/1000/.dbus-proxy/ /run/user/1000/.dbus-proxy/ --file 18 /.flatpak-info'
(flatpak build:28400): flatpak2-DEBUG: Running 'bwrap --args 14 /usr/libexec/flatpak-dbus-proxy --fd=17 unix:path=/run/user/1000/bus /run/user/1000/.dbus-proxy/session-bus-proxy-M65NEZ --filter --own=org.gnome.Polari '--own=org.gnome.Polari.*' --talk=ca.desrt.dconf --talk=org.freedesktop.Telepathy.AccountManager '--talk=org.freedesktop.Telepathy.Connection.idle.irc.*' '--talk=org.freedesktop.portal.*' --talk=org.freedesktop.Telepathy.ChannelDispatcher --talk=org.freedesktop.secrets'
Polari-Message: 17:50:00.263: Failed to activate service org.freedesktop.Telepathy.AccountManager, starting manually
Polari-Message: 17:50:00.267: Failed to activate service org.freedesktop.Telepathy.ConnectionManager.idle, starting manually
Polari-Message: 17:50:00.271: Failed to activate service org.freedesktop.Telepathy.Client.Logger, starting manually
(process:14): mcd-WARNING **: 17:50:00.288: Failed registering 'org.freedesktop.Telepathy.ChannelDispatcher' service: org.freedesktop.DBus.Error.AccessDenied: org.freedesktop.DBus.Error.AccessDenied
(telepathy-logger:17): tp-logger-CRITICAL **: 17:50:00.299: Error during D-Bus registration: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
(process:28405): flatpak-DEBUG: Error reading from socket: Error receiving message: Connection reset by peer
Gtk-Message: 17:50:00.306: Failed to load module "pk-gtk-module"
Gtk-Message: 17:50:00.309: Failed to load module "pk-gtk-module"
(org.gnome.Polari:2): Gjs-WARNING **: 17:50:09.295: JS ERROR: GLib.Error dbus-glib-error-quark: The name org.freedesktop.Telepathy.AccountManager was not provided by any .service files