Mte90 / yad-static-build

2 stars 0 forks source link

Blank content with yad --html option #1

Open fwn0 opened 3 months ago

fwn0 commented 3 months ago

I did tested you portable yad on Bookworm and Artix, but I got always a blank content of site, only buttons are present.

$ ./yad --html --uri="http://www.google.com"

(yad:7462): Gtk-WARNING **: 15:12:27.811: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could not be found.

(yad:7462): GLib-GObject-CRITICAL **: 15:12:27.814: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(yad:7462): GLib-GObject-CRITICAL **: 15:12:27.815: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

Mte90 commented 3 months ago

In the readme is mentioned that isn't built with webgtk so the HTML support is missing right now.

In the meantime I added the library and generating a new version, so let's see if now include webkitgtk support https://github.com/Mte90/yad-static-build/releases/tag/nightly-18032024

Mte90 commented 3 months ago

The package now is 70mb and the compile steps says that HTML dialog support is there.

Can you check with the latest version?

fwn0 commented 3 months ago

I did check your webkit2gtk version, but it still doesn't work; here is output from the terminal:

Gtk-Message: 14:07:14.296: Failed to load module "canberra-gtk-module" Gtk-Message: 14:07:14.337: Failed to load module "colorreload-gtk-module" Gtk-Message: 14:07:14.337: Failed to load module "appmenu-gtk-module" Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal

(yad:37877): ERROR : 14:07:14.406: Unable to spawn a new child process: Failed to spawn child process “/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitNetworkProcess” (No such file or directory) ./yad-static-build: line 11: 37877 Trace/breakpoint trap "$tmp_dir/ld-linux-x86-64.so.2" --library-path "$tmp_dir" "$tmp_dir/yad" "$@"

I don't have any tmp_dir/yad or ld-linux-x86-64.so.2 in temp. It seems, that something goes wrong with paths. Mayby exists some collision with my installed webkit2gtk (2.42.5-2 -arch/artix). Here is some post about webkit2gtk/webkit2gtk-dev: https://github.com/webview/webview/issues/230

Mte90 commented 3 months ago

The yad folder in tmp is cancelled when the process is closed. Probably the library needs more stuff that the one packelf is able to detect.