Elinvention / efiboots

Manage EFI boot loader entries with this simple GUI
GNU General Public License v3.0
138 stars 19 forks source link

(.:8738): Gtk-CRITICAL **: 10:19:01.323: Error building template for list item: .:0:0 Invalid object type 'GtkInscription' #41

Closed jknoxdev closed 1 year ago

jknoxdev commented 1 year ago

Filing for reference, it's looking like it's an issue on Ubuntu 22.04 Gtk python library... checking it out on gtk-ubuntu branch

Ubuntu 22.04 Python3

App screen

Error Log

Elinvention commented 1 year ago

Thanks for reporting this issue. According to https://docs.gtk.org/gtk4/class.Inscription.html Gtk.Inscription is available since GTK 4.8. What version of GTK are you using?

jknoxdev commented 1 year ago

good idea, and thanks for the super quick response!

jknox@rbsul22:~/apps/efiboots$ dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]'
ii  libgtk-3-0:amd64           3.24.33-1ubuntu2  amd64        GTK graphical user interface library
ii  libgtk-3-bin               3.24.33-1ubuntu2  amd64        programs for the GTK graphical user interface library
ii  libgtk-3-common            3.24.33-1ubuntu2  all          common files for the GTK graphical user interface library
ii  libgtk-4-1:amd64           4.6.6+ds-0ubuntu1 amd64        GTK graphical user interface library
ii  libgtk-4-bin               4.6.6+ds-0ubuntu1 amd64        programs for the GTK graphical user interface library
ii  libgtk-4-common            4.6.6+ds-0ubuntu1 all          common files for the GTK graphical user interface library
ii  libgtk2.0-0:amd64          2.24.33-2ubuntu2  amd64        GTK graphical user interface library - old version
ii  libgtk2.0-bin              2.24.33-2ubuntu2  amd64        programs for the GTK graphical user interface library
ii  libgtk2.0-common           2.24.33-2ubuntu2  all          common files for the GTK graphical user interface library
ii  libgtk3-perl               0.038-1           all          Perl bindings for the GTK+ graphical user interface library
Elinvention commented 1 year ago

It looks like Ubuntu 22.04 comes with GTK 4.6, so that's why. I recently added GtkInscription, so you can still use the newest commit before that change: 4470ec928f521d7bc0016d8ce6912934564304f3.

I'm sorry, but I don't have time to add backward compatibility in the main branch. I just rewrote much of the code to remove deprecated stuff and use newer things, so you have to use a distro with recent packages to run the main branch.

If you want to experiment a bit, you could also try out the nix package manager, that allows you to build an appropriate environment without messing with your system packages.

jknoxdev commented 1 year ago

Ahh hey, thanks for the link on the nix package manager, I'm going to try that out! Also, I'll keep working on a version for fun that can work with the older versions, thank you for making this and for the super fast replies!

jknoxdev commented 1 year ago

Confirmed it works with the nix package mgr! Thanks!

img

Elinvention commented 1 year ago

Glad to hear that!