-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced Cog browser with a WPE launcher for running WPEWebKit
... based on the new WPE platform API. Updated related scripts and documentation accordingly.
- Loading branch information
Showing
17 changed files
with
45 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
95 changes: 0 additions & 95 deletions
95
recipes-browser/cog/files/0001-wl-Add-safe-guards-for-touch-and-pointer-events.patch
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
recipes-browser/wpe-simple-launcher/wpe-simple-launcher/wpe-ctl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
CTL_FILE=/tmp/wpe-exported-wayland | ||
|
||
echo "$@" > ${CTL_FILE} |
23 changes: 13 additions & 10 deletions
23
recipes-browser/cog/files/cog-fdo → .../wpe-simple-launcher/wpe-exported-wayland
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
#! /bin/bash | ||
#!/bin/sh | ||
|
||
# export WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 | ||
# export GST_PLUGIN_FEATURE_RANK="avdec_av1:0" | ||
# export GST_DEBUG_DUMP_DOT_DIR=/tmp/gst-out/ | ||
# mkdir -p /tmp/gst-out | ||
# chmod 777 /tmp/gst-out | ||
|
||
CTL_FILE=/tmp/wpe-exported-wayland | ||
|
||
# WebKitDMABufVideoSink sink that is able to accept decode | ||
# dmabuf or raw data in a range of RGB-like or YUV formats. | ||
# Bug: https://bugs.webkit.org/show_bug.cgi?id=279819 | ||
export WEBKIT_GST_DMABUF_SINK_ENABLED=1 | ||
|
||
export GST_PLUGIN_FEATURE_RANK="avdec_av1:0" | ||
|
||
params=() | ||
export "$(strings < /proc/"$(pidof weston-keyboard)"/environ | grep WAYLAND_DISPLAY)" | ||
export "$(strings < /proc/"$(pidof weston-keyboard)"/environ | grep XDG_RUNTIME_DIR)" | ||
|
||
for arg in "$@"; do | ||
if [[ $arg == "--maximized" ]]; then | ||
COG_PLATFORM_WL_VIEW_WIDTH=$(journalctl -b | grep weston | grep current | cut -f 1 -d '@' | awk '{ print $6 }' | cut -d 'x' -f 1 | tail -n 1) | ||
export COG_PLATFORM_WL_VIEW_WIDTH | ||
|
||
COG_PLATFORM_WL_VIEW_HEIGHT=$(journalctl -b | grep weston | grep current | cut -f 1 -d '@' | awk '{ print $6 }' | cut -d 'x' -f 2 | tail -n 1) | ||
export COG_PLATFORM_WL_VIEW_HEIGHT | ||
else | ||
params+=("$arg") | ||
echo "maximized" > ${CTL_FILE} | ||
fi | ||
done | ||
|
||
/usr/bin/cog -P wl "${params[@]}" | ||
if [ "root" = "$(whoami)" ]; then | ||
su weston -c "/usr/bin/wpe-simple-launcher ${CTL_FILE}" | ||
else | ||
/usr/bin/wpe-simple-launcher "${CTL_FILE}" | ||
fi | ||
|
||
echo "${arg}" > ${CTL_FILE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
DESCRIPTION = "Simple WPE-based web launcher" | ||
|
||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
|
||
LICENSE = "MIT" | ||
LIC_FILES_CHKSUM = "file://LICENSE;md5=dd93f6e0496294f589c3d561f96ffee4" | ||
|
||
|
@@ -7,9 +10,19 @@ inherit meson pkgconfig | |
DEPENDS = "glib-2.0-native wpewebkit" | ||
|
||
SRCREV = "ca6175445ab527ab1318666536061150573adb5c" | ||
SRC_URI = "git://[email protected]/psaavedra/wpe-simple-launcher.git;protocol=ssh;branch=main" | ||
SRC_URI = "git://[email protected]/psaavedra/wpe-simple-launcher.git;protocol=ssh;branch=main \ | ||
file://wpe-ctl | ||
file://wpe-exported-wayland | ||
" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
EXTRA_OECMAKE = "" | ||
|
||
do_install:append () { | ||
install -d ${D}/${bindir}/ | ||
install -m 755 ${WORKDIR}/wpe-ctl ${D}/${bindir}/wpe-ctl | ||
install -m 755 ${WORKDIR}/wpe-exported-wayland ${D}/${bindir}/wpe-exported-wayland | ||
} | ||
|
||
RDEPENDS:${PN} += "bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#!/bin/bash | ||
/usr/bin/kill-demo | ||
export COG_PLATFORM_WL_VIEW_WIDTH=$(journalctl -b | grep weston | grep current | cut -f 1 -d '@' | awk '{ print $6 }' | cut -d 'x' -f 1 | tail -n 1) | ||
export COG_PLATFORM_WL_VIEW_HEIGHT=$(journalctl -b | grep weston | grep current | cut -f 1 -d '@' | awk '{ print $6 }' | cut -d 'x' -f 2 | tail -n 1) | ||
export WEBKIT_SHOW_FPS=0 GALLIUM_HUD_TOGGLE_SIGNAL=10 GALLIUM_HUD_VISIBLE=0 GALLIUM_HUD=cpu+fps | ||
/usr/bin/cog-fdo-exported-wayland https://duckduckgo.com/ | ||
/usr/bin/wpe-exported-wayland --maximized https://duckduckgo.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#!/bin/bash | ||
/usr/bin/kill-demo | ||
export COG_PLATFORM_WL_VIEW_WIDTH=$(journalctl -b | grep weston | grep current | cut -f 1 -d '@' | awk '{ print $6 }' | cut -d 'x' -f 1 | tail -n 1) | ||
export COG_PLATFORM_WL_VIEW_HEIGHT=$(journalctl -b | grep weston | grep current | cut -f 1 -d '@' | awk '{ print $6 }' | cut -d 'x' -f 2 | tail -n 1) | ||
export WEBKIT_SHOW_FPS=0 GALLIUM_HUD_TOGGLE_SIGNAL=10 GALLIUM_HUD_VISIBLE=0 GALLIUM_HUD=cpu+fps | ||
/usr/bin/cog-fdo-exported-wayland https://www.wpewebkit.org | ||
/usr/bin/wpe-exported-wayland --maximized https://www.wpewebkit.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#! /bin/bash | ||
/usr/bin/pkill -9 -f "cog" | ||
/usr/bin/pkill -9 -f "wpe-simple-launcher" | ||
/usr/bin/pkill -9 -O 1 -f "demo" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters