I hit the same crash on Linux Mint 22.2 (Ubuntu 24.04 base). The cause
is that GTK is imported without an explicit
gi.require_version('Gtk','3.0'), which lets introspection load GTK4 on
systems that have both GTK3/4 installed; the provided .glade is GTK3,
and GTK4 rejects signals like 'delete-event' which causes the builder
error.
Simple tested fix: in /usr/share/light-locker-settings/light-locker-
settings/light-locker-settings.py, replace
```
from gi.repository import Gtk, GLib, Gio
```
with
```
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GLib, Gio
```
Should be safe for existing installs, the UI is GTK3-based and the
package already depends on GTK3 through `gir1.2-gtk-3.0`.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2002042
Title:
light-locker-settings.py crashed with gi.repository.GLib.GError in
__init__(): gtk-builder-error-quark: /usr/share/light-locker-
settings/light-locker-settings/light-locker-settings.glade:8:75
Invalid signal 'delete-event' for type 'GtkWindow' (12)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/light-locker-settings/+bug/2002042/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs