Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gtk couldn't be initialized. #1728

Closed
EyesWithoutFace opened this issue Mar 22, 2025 · 5 comments
Closed

Gtk couldn't be initialized. #1728

EyesWithoutFace opened this issue Mar 22, 2025 · 5 comments

Comments

@EyesWithoutFace
Copy link

System Details

  • OS: Nobara 41 Gnome Edition
  • GPU: AMD 7900XTX
  • CPU: RYZEN 9 7950X
  • RAM: 64GB
  • OTHER DES: GNOME

Issue Details

Can't use the nobara-sync GTK app as GTK couldn't initialize. Here is the snippet of the exact error:

Traceback (most recent call last):
  File "/usr/bin/nobara-updater", line 1485, in <module>
    main()
    ~~~~^^
  File "/usr/bin/nobara-updater", line 1095, in main
    update_window = UpdateWindow()
  File "/usr/bin/nobara-updater", line 1109, in __init__
    super().__init__(title="Update System")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/site-packages/gi/overrides/Gtk.py", line 508, in __init__
    raise RuntimeError(
        "Gtk couldn't be initialized. "
        "Use Gtk.init_check() if you want to handle this case.")
RuntimeError: Gtk couldn't be initialized. Use Gtk.init_check() if you want to handle this case.

I can't seem to replicate this issue on Gnome, as it works fine there and all other gnome apps work just fine as well.

@mmstick
Copy link
Member

mmstick commented Mar 22, 2025

You'll have to file that with Nobara. We don't package this software.

@EyesWithoutFace
Copy link
Author

EyesWithoutFace commented Mar 22, 2025

You'll have to file that with Nobara. We don't package this software.

Already contacted them about it, they told me to contact you haha… Is there a test I can run to ensure gtk3 is working in cosmic in general for you just to verify? When I installed cosmic there was a conflicting adw-gtk3-theme which I overwrote. Could that be causing it?

@mmstick
Copy link
Member

mmstick commented Mar 22, 2025

GTK3 is well supported. The GIMP system package is a GTK3 package, and there are many others that still use GTK3. Also, when the GTK theme support is enabled, the GTK3 theme should be set to adw-gtk3{,-dark}.

@GloriousEggroll
Copy link

It was caused by this:

#1418

Worked around it using xhost for now. I have found another odd issue though (unrelated, seems a bug in cosmic-files). will open separate bug.

@mmstick
Copy link
Member

mmstick commented Mar 22, 2025

sudo -EH would likely be more convenient. But nobara-sync should not be using root for its GUI process.

@mmstick mmstick closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants