Package: gajim
Version: 1.2.2-1
Severity: important
Tags: patch
X-Debbugs-Cc: pkg-gnome-maintain...@lists.alioth.debian.org
X-Debbugs-Cc: pkg-xmpp-de...@lists.alioth.debian.org
X-Debbugs-Cc: pkg-freedesktop-maintain...@lists.alioth.debian.org

It was noticed that there is a regression when switching from gajim on
Debian buster to gajim on Debian bullseye.

When clicking on a file (aesgcm://....) in the chat, the data is
downloaded but the buttons "Open Folder" or "Open" aren't doing
anything. Also clicking on a link will not open a browser window. Only
following is shown in the log for all the described scenarios:

15.12.2020 09:23:17 (E) gajim.c.helpers            g-io-error-quark:
No application is registered as handling this file (15)
Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/gajim/common/helpers.py", line
1044, in func_wrapper
   result = func(self, *args, **kwargs)
 File "/usr/lib/python3/dist-packages/gajim/common/helpers.py", line
1160, in open_file
   Gio.AppInfo.launch_default_for_uri(path)
gi.repository.GLib.GError: g-io-error-quark: No application is
registered as handling this file (15)

This can easily be fixed with the attached patch for the dependencies
in debian/control to make sure that desktop-file-utils are installed.
diff --git a/debian/control b/debian/control
index 697079d..11e7a3d 100644
--- a/debian/control
+++ b/debian/control
@@ -31,6 +31,7 @@ Architecture: all
 Depends:
     ${misc:Depends},
     ${python3:Depends},
+    desktop-file-utils,
     gir1.2-gtk-3.0 (>= 3.22.27~),
     python3 (>= 3.5),
     python3-cssutils (>= 1.0.2),

Reply via email to