diff --git a/recipes/wip/web/webkitgtk3/recipe.toml b/recipes/wip/web/webkitgtk3/recipe.toml index b676f890c..2db5ce321 100644 --- a/recipes/wip/web/webkitgtk3/recipe.toml +++ b/recipes/wip/web/webkitgtk3/recipe.toml @@ -58,8 +58,8 @@ cookbook_cmake patchelf --replace-needed "${COOKBOOK_SYSROOT}/usr/lib/libsqlite3.so" "libsqlite3.so" "${COOKBOOK_STAGE}/usr/lib/libwebkit2gtk-4.1.so" patchelf --replace-needed "${COOKBOOK_SYSROOT}/usr/lib/libsqlite3.so" "libsqlite3.so" "${COOKBOOK_STAGE}/usr/libexec/webkit2gtk-4.1/MiniBrowser" mkdir -p "${COOKBOOK_STAGE}/usr/bin" "${COOKBOOK_STAGE}/usr/share/applications" -ln -sr "${COOKBOOK_STAGE}/usr/libexec/webkit2gtk-4.1/MiniBrowser" "${COOKBOOK_STAGE}/usr/bin/MiniBrowser" cp "${COOKBOOK_RECIPE}/webkit.desktop" "${COOKBOOK_STAGE}/usr/share/applications/webkit.desktop" +cp "${COOKBOOK_RECIPE}/webkit.sh" "${COOKBOOK_STAGE}/usr/bin/webkit" """ [package] diff --git a/recipes/wip/web/webkitgtk3/webkit.desktop b/recipes/wip/web/webkitgtk3/webkit.desktop index b3c4fd074..43aab7b08 100644 --- a/recipes/wip/web/webkitgtk3/webkit.desktop +++ b/recipes/wip/web/webkitgtk3/webkit.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=WebKit Comment=WebKit GTK Browser -Exec=MiniBrowser +Exec=webkit Icon=/usr/share/ui/icons/apps/internet-web-browser.png Terminal=false Type=Application diff --git a/recipes/wip/web/webkitgtk3/webkit.sh b/recipes/wip/web/webkitgtk3/webkit.sh new file mode 100755 index 000000000..a152e5346 --- /dev/null +++ b/recipes/wip/web/webkitgtk3/webkit.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +SCHEMA_DIR="/usr/share/glib-2.0/schemas" +COMPILED_SCHEMA="$SCHEMA_DIR/gschemas.compiled" + +if [ ! -f "$COMPILED_SCHEMA" ]; then + echo "GSettings schemas are not compiled. Please run" + echo "sudo glib-compile-schemas $SCHEMA_DIR" + # otherwise css layout will be broken + exit 1 +fi + +# TODO: why? +export GTK_DEBUG=interactive +# TODO: plugin scanner parsing failure +export GST_REGISTRY_DISABLE=yes + +exec /usr/libexec/webkit2gtk-4.1/MiniBrowser