Bug#1117444: Cannot run: TypeError by GioUnix.DesktopAppInfo.get_filename() in gtweak/utils.py

Simon McVittie smcv at debian.org
Sun Oct 5 20:09:10 BST 2025


Control: tags -1 - patch

On Mon, 06 Oct 2025 at 03:43:20 +0900, Jongmin Kim wrote:
>With the proposed patch, gnome-tweaks starts normally.
...
>-        return [a.get_filename() for a in Gio.app_info_get_all()]
>+        return [a.get_filename(a) for a in Gio.app_info_get_all()]

I don't think this is a correct solution: instance methods on an object 
are not meant to require the instance to be passed as an explicit 
parameter. It might work as a short-term workaround for now, with the 
specific combination of GLib and pygobject versions you're currently 
using, but it seems very likely that it will regress as soon as the 
underlying bug is fixed (most likely in pygobject, or possibly in GLib).

I suspect this is actually a pygobject regression, probably related to 
the changes that were made for GLib 2.86 compatibility.

     smcv



More information about the pkg-gnome-maintainers mailing list