home.social

#glib — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #glib, aggregated by home.social.

  1. My adventures of writing GTK programs in Rust took a turn this this time.
    gitlab.com/guystreeter/rgdbus-
    is a server and client example of using glib's D-Bus interface in Rust. I discovered a few things that haven't been implemented, but was generally successful.

  2. Finally got my YouTube live chat API client library working with the peel C++ bindings generator for #GLib / #GObject. I built a small coroutine task abstraction that makes working with GLib-style async functions much cleaner.

    Still a lot more work to do to with caching/refreshing OAuth tokens and processing of messages, but hopefully I can get a prototype libpurple plugin (the ultimate goal) working fairly soon

  3. Looks like it's a problem with the XDG Template directory being set to the home directory, and it now just recurses and recurses and recurses and gets FAR too busy.

    bugs.debian.org/cgi-bin/bugrep

    Specifically, it's about `$HOME/` not being recognised as the home directory because of the trailing slash.

    gitlab.gnome.org/GNOME/glib/-/

    So either edit your config as per the Debian comment, or wait for your distro to release the fix.

    #Gnome #Nautilus #GLib

  4. Looks like it's a problem with the XDG Template directory being set to the home directory, and it now just recurses and recurses and recurses and gets FAR too busy.

    bugs.debian.org/cgi-bin/bugrep

    Specifically, it's about `$HOME/` not being recognised as the home directory because of the trailing slash.

    gitlab.gnome.org/GNOME/glib/-/

    So either edit your config as per the Debian comment, or wait for your distro to release the fix.

    #Gnome #Nautilus #GLib

  5. Looks like it's a problem with the XDG Template directory being set to the home directory, and it now just recurses and recurses and recurses and gets FAR too busy.

    bugs.debian.org/cgi-bin/bugrep

    Specifically, it's about `$HOME/` not being recognised as the home directory because of the trailing slash.

    gitlab.gnome.org/GNOME/glib/-/

    So either edit your config as per the Debian comment, or wait for your distro to release the fix.

  6. Looks like it's a problem with the XDG Template directory being set to the home directory, and it now just recurses and recurses and recurses and gets FAR too busy.

    bugs.debian.org/cgi-bin/bugrep

    Specifically, it's about `$HOME/` not being recognised as the home directory because of the trailing slash.

    gitlab.gnome.org/GNOME/glib/-/

    So either edit your config as per the Debian comment, or wait for your distro to release the fix.

    #Gnome #Nautilus #GLib

  7. Looks like it's a problem with the XDG Template directory being set to the home directory, and it now just recurses and recurses and recurses and gets FAR too busy.

    bugs.debian.org/cgi-bin/bugrep

    Specifically, it's about `$HOME/` not being recognised as the home directory because of the trailing slash.

    gitlab.gnome.org/GNOME/glib/-/

    So either edit your config as per the Debian comment, or wait for your distro to release the fix.

    #Gnome #Nautilus #GLib

  8. #DailyBird 🤖
    Glossy Ibis (Plegadis falcinellus), 8th May 2024
    es: Morito Común, fr: Ibis Falcinelle
    Cape Henlopen State Park, The Glade, Delaware
    Lenapehoking (Lenni-Lenape) & Pocomoke-Assateague traditional territory
    Canon EOS R5, Canon RF 200-800mm f/6.3-9 + 1.4x teleconverter @ 1120mm, 20% crop, 1/400s, f/14, ISO 1250
    #Birds #GlossyIbis #GLIB #BirdOfTheDay #HopeIsTheThingWithFeathers #DescribeYourImages

  9. #DailyBird 🤖
    Glossy Ibis (Plegadis falcinellus), 8th May 2024
    es: Morito Común, fr: Ibis Falcinelle
    Cape Henlopen State Park, The Glade, Delaware
    Lenapehoking (Lenni-Lenape) & Pocomoke-Assateague traditional territory
    Canon EOS R5, Canon RF 200-800mm f/6.3-9 + 1.4x teleconverter @ 1120mm, 20% crop, 1/400s, f/14, ISO 1250
    #Birds #GlossyIbis #GLIB #BirdOfTheDay #HopeIsTheThingWithFeathers #DescribeYourImages

  10. #DailyBird 🤖
    Glossy Ibis (Plegadis falcinellus), 8th May 2024
    es: Morito Común, fr: Ibis Falcinelle
    Cape Henlopen State Park, The Glade, Delaware
    Lenapehoking (Lenni-Lenape) & Pocomoke-Assateague traditional territory
    Canon EOS R5, Canon RF 200-800mm f/6.3-9 + 1.4x teleconverter @ 1120mm, 20% crop, 1/400s, f/14, ISO 1250
    #Birds #GlossyIbis #GLIB #BirdOfTheDay #HopeIsTheThingWithFeathers #DescribeYourImages

  11. #DailyBird 🤖
    Glossy Ibis (Plegadis falcinellus), 8th May 2024
    es: Morito Común, fr: Ibis Falcinelle
    Cape Henlopen State Park, The Glade, Delaware
    Lenapehoking (Lenni-Lenape) & Pocomoke-Assateague traditional territory
    Canon EOS R5, Canon RF 200-800mm f/6.3-9 + 1.4x teleconverter @ 1120mm, 20% crop, 1/400s, f/14, ISO 1250
    #Birds #GlossyIbis #GLIB #BirdOfTheDay #HopeIsTheThingWithFeathers #DescribeYourImages

  12. #DailyBird 🤖
    Glossy Ibis (Plegadis falcinellus), 8th May 2024
    es: Morito Común, fr: Ibis Falcinelle
    Cape Henlopen State Park, The Glade, Delaware
    Lenapehoking (Lenni-Lenape) & Pocomoke-Assateague traditional territory
    Canon EOS R5, Canon RF 200-800mm f/6.3-9 + 1.4x teleconverter @ 1120mm, 20% crop, 1/400s, f/14, ISO 1250
    #Birds #GlossyIbis #GLIB #BirdOfTheDay #HopeIsTheThingWithFeathers #DescribeYourImages

  13. First a bit of context for the GLib project, which is comprised of three main parts: GLib, GObject and GIO. #GLib contains things you'd generally get from a standard library, #GObject defines the OOP semantics (methods/properties/signals, inheritance, etc), and #GIO provides reasonably high-level APIs for everything from sockets and files to D-Bus and Gio.DesktopAppInfo.

    andyholmes.ca/posts/best-inten

  14. First a bit of context for the GLib project, which is comprised of three main parts: GLib, GObject and GIO. #GLib contains things you'd generally get from a standard library, #GObject defines the OOP semantics (methods/properties/signals, inheritance, etc), and #GIO provides reasonably high-level APIs for everything from sockets and files to D-Bus and Gio.DesktopAppInfo.

    andyholmes.ca/posts/best-inten

  15. First a bit of context for the GLib project, which is comprised of three main parts: GLib, GObject and GIO. #GLib contains things you'd generally get from a standard library, #GObject defines the OOP semantics (methods/properties/signals, inheritance, etc), and #GIO provides reasonably high-level APIs for everything from sockets and files to D-Bus and Gio.DesktopAppInfo.

    andyholmes.ca/posts/best-inten

  16. First a bit of context for the GLib project, which is comprised of three main parts: GLib, GObject and GIO. #GLib contains things you'd generally get from a standard library, #GObject defines the OOP semantics (methods/properties/signals, inheritance, etc), and #GIO provides reasonably high-level APIs for everything from sockets and files to D-Bus and Gio.DesktopAppInfo.

    andyholmes.ca/posts/best-inten

  17. First a bit of context for the GLib project, which is comprised of three main parts: GLib, GObject and GIO. #GLib contains things you'd generally get from a standard library, #GObject defines the OOP semantics (methods/properties/signals, inheritance, etc), and #GIO provides reasonably high-level APIs for everything from sockets and files to D-Bus and Gio.DesktopAppInfo.

    andyholmes.ca/posts/best-inten

  18. Well that's something new. Must be a circular dependency between glib-2.82.4,2 and gobject-introspection@bootstrap, but I'm not entirely sure which port to file a bug against; I suspect gobject-introspection.

    #FreeBSD #glib #portmaster

  19. Well that's something new. Must be a circular dependency between glib-2.82.4,2 and gobject-introspection@bootstrap, but I'm not entirely sure which port to file a bug against; I suspect gobject-introspection.

    #FreeBSD #glib #portmaster

  20. Well that's something new. Must be a circular dependency between glib-2.82.4,2 and gobject-introspection@bootstrap, but I'm not entirely sure which port to file a bug against; I suspect gobject-introspection.

    #FreeBSD #glib #portmaster

  21. Well that's something new. Must be a circular dependency between glib-2.82.4,2 and gobject-introspection@bootstrap, but I'm not entirely sure which port to file a bug against; I suspect gobject-introspection.

    #FreeBSD #glib #portmaster

  22. Well that's something new. Must be a circular dependency between glib-2.82.4,2 and gobject-introspection@bootstrap, but I'm not entirely sure which port to file a bug against; I suspect gobject-introspection.

    #FreeBSD #glib #portmaster

  23. I have not blogged or talked about the follow-up work to my "GType Next" blog post that I've been doing in my spare time, mainly because it is happening *in my spare time*, and I don't want to give false impressions to people; the other reason is that the time consuming bit is not writing a bunch of code, but it's planning ahead, because the goal is to avoid breaking stuff at all costs…

    #glib #gobject #gtk

  24. I have not blogged or talked about the follow-up work to my "GType Next" blog post that I've been doing in my spare time, mainly because it is happening *in my spare time*, and I don't want to give false impressions to people; the other reason is that the time consuming bit is not writing a bunch of code, but it's planning ahead, because the goal is to avoid breaking stuff at all costs…

    #glib #gobject #gtk

  25. I have not blogged or talked about the follow-up work to my "GType Next" blog post that I've been doing in my spare time, mainly because it is happening *in my spare time*, and I don't want to give false impressions to people; the other reason is that the time consuming bit is not writing a bunch of code, but it's planning ahead, because the goal is to avoid breaking stuff at all costs…

    #glib #gobject #gtk

  26. I have not blogged or talked about the follow-up work to my "GType Next" blog post that I've been doing in my spare time, mainly because it is happening *in my spare time*, and I don't want to give false impressions to people; the other reason is that the time consuming bit is not writing a bunch of code, but it's planning ahead, because the goal is to avoid breaking stuff at all costs…

    #glib #gobject #gtk

  27. I have not blogged or talked about the follow-up work to my "GType Next" blog post that I've been doing in my spare time, mainly because it is happening *in my spare time*, and I don't want to give false impressions to people; the other reason is that the time consuming bit is not writing a bunch of code, but it's planning ahead, because the goal is to avoid breaking stuff at all costs…

    #glib #gobject #gtk

  28. Ciekawostka: jeżeli różne programy sypią się z błędami typu:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    a macie pewność, że schematy skompilowane, i definitywnie zawierają taki klucz, to może okazać się, że z jakiegoś powodu w waszym katalogu domowym siedzi dodatkowy plik ze skompilowanymi schematami, i jest używany zamiast systemowego.

    Czyli:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  29. Ciekawostka: jeżeli różne programy sypią się z błędami typu:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    a macie pewność, że schematy skompilowane, i definitywnie zawierają taki klucz, to może okazać się, że z jakiegoś powodu w waszym katalogu domowym siedzi dodatkowy plik ze skompilowanymi schematami, i jest używany zamiast systemowego.

    Czyli:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  30. Ciekawostka: jeżeli różne programy sypią się z błędami typu:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    a macie pewność, że schematy skompilowane, i definitywnie zawierają taki klucz, to może okazać się, że z jakiegoś powodu w waszym katalogu domowym siedzi dodatkowy plik ze skompilowanymi schematami, i jest używany zamiast systemowego.

    Czyli:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  31. Ciekawostka: jeżeli różne programy sypią się z błędami typu:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    a macie pewność, że schematy skompilowane, i definitywnie zawierają taki klucz, to może okazać się, że z jakiegoś powodu w waszym katalogu domowym siedzi dodatkowy plik ze skompilowanymi schematami, i jest używany zamiast systemowego.

    Czyli:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  32. Ciekawostka: jeżeli różne programy sypią się z błędami typu:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    a macie pewność, że schematy skompilowane, i definitywnie zawierają taki klucz, to może okazać się, że z jakiegoś powodu w waszym katalogu domowym siedzi dodatkowy plik ze skompilowanymi schematami, i jest używany zamiast systemowego.

    Czyli:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  33. Fun fact: if random applications are crashing with errors like:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    and you've already verified that you've compiled the schemas, and that the schema contains the listed key, then it may mean that for some reason you have another compiled schema file in your home directory, and it's taking precedence.

    In other words:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  34. Fun fact: if random applications are crashing with errors like:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    and you've already verified that you've compiled the schemas, and that the schema contains the listed key, then it may mean that for some reason you have another compiled schema file in your home directory, and it's taking precedence.

    In other words:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  35. Fun fact: if random applications are crashing with errors like:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    and you've already verified that you've compiled the schemas, and that the schema contains the listed key, then it may mean that for some reason you have another compiled schema file in your home directory, and it's taking precedence.

    In other words:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  36. Fun fact: if random applications are crashing with errors like:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    and you've already verified that you've compiled the schemas, and that the schema contains the listed key, then it may mean that for some reason you have another compiled schema file in your home directory, and it's taking precedence.

    In other words:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  37. Fun fact: if random applications are crashing with errors like:

    (…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

    and you've already verified that you've compiled the schemas, and that the schema contains the listed key, then it may mean that for some reason you have another compiled schema file in your home directory, and it's taking precedence.

    In other words:

    rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

    #Gentoo #GNOME #glib

  38. Play FlappyBird, but written in #vala !
    gitlab.com/nda-cunh/flappyvala
    Using only #SFML and #glib as dependencies.
    The code is object oriented and a very good example for a non-gtk Vala app. Check it out!

    #gamedev #gaming #FlappyBird #OOP

  39. Play FlappyBird, but written in #vala !
    gitlab.com/nda-cunh/flappyvala
    Using only #SFML and #glib as dependencies.
    The code is object oriented and a very good example for a non-gtk Vala app. Check it out!

    #gamedev #gaming #FlappyBird #OOP

  40. Play FlappyBird, but written in #vala !
    gitlab.com/nda-cunh/flappyvala
    Using only #SFML and #glib as dependencies.
    The code is object oriented and a very good example for a non-gtk Vala app. Check it out!

    #gamedev #gaming #FlappyBird #OOP

  41. Play FlappyBird, but written in #vala !
    gitlab.com/nda-cunh/flappyvala
    Using only #SFML and #glib as dependencies.
    The code is object oriented and a very good example for a non-gtk Vala app. Check it out!

    #gamedev #gaming #FlappyBird #OOP

  42. Play FlappyBird, but written in #vala !
    gitlab.com/nda-cunh/flappyvala
    Using only #SFML and #glib as dependencies.
    The code is object oriented and a very good example for a non-gtk Vala app. Check it out!

    #gamedev #gaming #FlappyBird #OOP

  43. CW: old cat yells about packaging and cross-compiling

    Feels like I got into shaving a whole herd of yaks when I just wanted to access NetworkManager over D-Bus from Python on a certain embedded system. ​:neocat_laugh_sweat:​

    * The only non-deprecated, non-systemd way to do that (short of handwriting a client library) seems to be python-gobject and introspection.
    * The
    #Buildroot packages for python-gobject and gobject introspection are marked as glibc-only, but I'm using musl. And I know they work on Alpine just fine.
    * The GLib, gobject-introspection, and python-object versions in Buildroot are very old. And Alpine actually dropped a musl-compatibility patch with the most recent gobject-introspection version. So… update time.
    * The
    #GLib build process changed and now requires a bootstrap step to support introspection.
    * Turns out… Bootstrap or not, introspection isn't supported when cross-compiling.
    ​:neocat_scream_stare:​

    We'll see where it goes from here, the gobject-introspection package in Buildroot does some wild things with Qemu to work around a similar limitation. And there are some somewhat recent changes related to cross-compiling upstream.
    ​:neocat_think:​

  44. CW: old cat yells about packaging and cross-compiling

    Feels like I got into shaving a whole herd of yaks when I just wanted to access NetworkManager over D-Bus from Python on a certain embedded system. ​:neocat_laugh_sweat:​

    * The only non-deprecated, non-systemd way to do that (short of handwriting a client library) seems to be python-gobject and introspection.
    * The
    #Buildroot packages for python-gobject and gobject introspection are marked as glibc-only, but I'm using musl. And I know they work on Alpine just fine.
    * The GLib, gobject-introspection, and python-object versions in Buildroot are very old. And Alpine actually dropped a musl-compatibility patch with the most recent gobject-introspection version. So… update time.
    * The
    #GLib build process changed and now requires a bootstrap step to support introspection.
    * Turns out… Bootstrap or not, introspection isn't supported when cross-compiling.
    ​:neocat_scream_stare:​

    We'll see where it goes from here, the gobject-introspection package in Buildroot does some wild things with Qemu to work around a similar limitation. And there are some somewhat recent changes related to cross-compiling upstream.
    ​:neocat_think:​