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

Failed to load module "colorreload-gtk-module" #40

Open
ITwrx opened this issue Jul 28, 2024 · 3 comments
Open

Failed to load module "colorreload-gtk-module" #40

ITwrx opened this issue Jul 28, 2024 · 3 comments

Comments

@ITwrx
Copy link

ITwrx commented Jul 28, 2024

when running 2.5.0.0 (head)

import webui

let window = newWindow() # Create a new Window
window.showWv("<html>Hello</html>")

wait()  

i get Gtk-Message: 17:25:10.910: Failed to load module "colorreload-gtk-module"

Following a random internet comment, i ran: dnf install kde-gtk-config
which installed kde-gtk-config and xsettingsd. This made the warning go away.

Does webUI really need this dep? If so, maybe it could be documented with the webkitgtk dep? Or, if not, removed from webui so we don't have to worry about it?

Thanks

@AlbertShown
Copy link

showWv() will tries to load GTK WebView if installed.
but if you use showBrowser() this will use the web browser, and it has zero dependencies.

@ITwrx
Copy link
Author

ITwrx commented Jul 29, 2024

I do know showWv() will use a GTK WebView. That's what i was trying out to see how much ram it would use. My question is about the colorreload-gtk-module warning and the deps. I already had webkit2gtk4 installed, but i didn't already have kde-gtk-config installed as a dep. I'm wondering where this dep is coming from, and whether it can be documented or removed, assuming it's coming from webui. Is something in webui using something provided by kde-gtk-config? It sure seems like it on my Fedora 40 machine.

@AlbertShown
Copy link

https://github.com/webui-dev/webui/blob/2e94629304402fdf4b9144397c85cf56e18a35ee/src/webui.c#L10567

#define GTK_RUNTIME_ARR { "libgtk-3.so.0" } // TODO: Add GTK v4 APIs "libgtk-4.so.1"
#define WEBKIT_RUNTIME_ARR { "libwebkit2gtk-4.1.so.0", "libwebkit2gtk-4.0.so.37" }

I guess it's using actually GTK v3 and not v4. Also, all the tests are done in Ubuntu only.

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

2 participants