View previous topic :: View next topic |
Author |
Message |
richmaxw n00b

Joined: 24 Jan 2020 Posts: 39
|
Posted: Sun Jan 03, 2021 2:14 pm Post subject: Firefox GTK Error |
|
|
Whenever I launch Firefox from the CLI, I see the following messages:
Code: | (/usr/lib64/firefox/firefox:7460): Gtk-WARNING **: 07:07:31.720: Failed to parse /home/user/.config/gtk-3.0/settings.ini: Key file does not have group “Settings”
Gtk-Message: 07:07:43.631: Failed to load module "/usr/lib64/gtk-2.0/modules/" |
I am using Firefox 78.6.0 ESR. Here are the contents of /usr/lib64/gtk-2.0/modules/:
- libatk-bridge.so
- libcanberra-gtk-module.so
- libferret.so
- libgail.so
[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Jan 03, 2021 2:20 pm Post subject: |
|
|
Do other GTK2 programs have problems? Try running (as root) "gtk-query-immodules-2.0 --update-cache" to fix it. |
|
Back to top |
|
 |
richmaxw n00b

Joined: 24 Jan 2020 Posts: 39
|
Posted: Sun Jan 03, 2021 2:49 pm Post subject: |
|
|
Hi. I just ran the command. No output was displayed. However, the error message is still appearing when I launch Firefox. What is an example of a GTK 2 application I can try? |
|
Back to top |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Jan 03, 2021 3:19 pm Post subject: |
|
|
No output there is correct, but if you want to see what it's doing just re-run it without the switch. There's also a manpage that explains what it does.
It's possible that isn't the source of the actual failure, just a warning. Firefox is one of those sloppily written GUI apps that tend to dump volumes of warnings into the terminal.
For something minimal to test gtk2 with, try x11-themes/gtk-chtheme. There's also a gtk3 error there but that probably isn't it either, and you'd notice many more things broken if it were. |
|
Back to top |
|
 |
richmaxw n00b

Joined: 24 Jan 2020 Posts: 39
|
Posted: Sun Jan 03, 2021 3:32 pm Post subject: |
|
|
If I run gtk-chtheme, the error appears there, too:
Code: | Gtk-Message: 08:27:43.022: Failed to load module "/usr/lib64/gtk-2.0/modules/" |
I've been trying to get the Flash plugin to work in Firefox. It's loaded, but Flash content is blank. I was using firefox-bin. When I was trying in firefox-bin, it displayed an error about libcanberra-gtk-module.so. So, I switched to regular firefox, and that error is gone, but the above error is still there. I'm wondering if it's why the content won't load. Chrome plays Flash content fine. I realize Flash is being phased out, but there are some educational sites I use that use Flash, still. |
|
Back to top |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Jan 03, 2021 3:53 pm Post subject: |
|
|
I think there may be a built-in time bomb for Flash, at least in Firefox. I wasn't able to get it to run things either. The normal flash right-click menu comes up, but nothing happens. |
|
Back to top |
|
 |
Ionen Developer


Joined: 06 Dec 2018 Posts: 2897
|
Posted: Sun Jan 03, 2021 4:05 pm Post subject: |
|
|
Firefox is also working on removing NPAPI support entirely which will finally allow building it without gtk2. Not sure if that'll be ready for firefox 85 but firefox 85 will disable flash entirely either way.
Gentoo also removed the plugin earlier today.
If really still need it, may want to try the standalone flashplayer (aka Projector) while it's still possible to download/use it. Not that it'll help if you needed browser integration.
There's also developing alternatives like ruffle.rs (not that it'll work for most semi-modern flash content yet, but lot of old stuff works great). |
|
Back to top |
|
 |
Logicien Veteran


Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Sun Jan 03, 2021 4:17 pm Post subject: |
|
|
You are missing the file /home/user/.config/gtk-3.0/settings.ini and possibly the parent directory. Firefox use Gtk3 and this file have an element for modules configuration. There is Gtk3 utilities like gtk3-demo to generate this file for Firefox and Gtk3 applications.This is how this customable file look
Code: | [Settings]
gtk-application-prefer-dark-theme=false
gtk-button-images=true
gtk-cursor-theme-name=ComixCursors-Red
gtk-cursor-theme-size=18
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-font-name=Cantarell Bold 13
gtk-icon-theme-name=Adwaita
gtk-menu-images=true
gtk-modules=\sappmenu-gtk-module:colorreload-gtk-module
gtk-primary-button-warps-slider=false
gtk-theme-name=Default
gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR
gtk-toolbar-style=3
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb |
I use an other file ~/.config/gtk3-0/gtk.css to set the colors of Gtk3 applications. _________________ Paul |
|
Back to top |
|
 |
|