summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Charadon2022-10-03 03:12:06 +0200
committer Willy Sudiarto Raharjo2022-10-03 18:19:38 +0200
commit1246fd5cebabcfb2a6287920e2ca2a2ea44ad5c0 (patch)
treef4bb7da03df716fbad0816e04e82c3947c36613e
parent39c23d485a57b4a567a595f5039e35f96dcac99d (diff)
downloadslackbuilds-1246fd5cebabcfb2a6287920e2ca2a2ea44ad5c0.tar.gz
network/epiphany: Added Malloc=1 to desktop file to avoid webkit crashes.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/epiphany/README3
-rw-r--r--network/epiphany/epiphany.SlackBuild4
2 files changed, 6 insertions, 1 deletions
diff --git a/network/epiphany/README b/network/epiphany/README
index 4b11aae5a7..e1689730b3 100644
--- a/network/epiphany/README
+++ b/network/epiphany/README
@@ -6,3 +6,6 @@ desktop integration, a built-in adblocker enabled by default, and
Intelligent Tracking Prevention. With no useless widgets or wasted
space, Web closely follows GNOME's design philosophy. Its code name
is Epiphany.
+
+To avoid crashes on certain websites. Be sure to set Malloc=1 as an
+environment variable. This is already done for you in the desktop file.
diff --git a/network/epiphany/epiphany.SlackBuild b/network/epiphany/epiphany.SlackBuild
index 1d50f6b6e1..3c84b811ad 100644
--- a/network/epiphany/epiphany.SlackBuild
+++ b/network/epiphany/epiphany.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=epiphany
VERSION=${VERSION:-42.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -87,6 +87,8 @@ cd build
DESTDIR=$PKG $NINJA install
cd ..
+sed -i 's/Exec=epiphany/Exec=env Malloc=1 epiphany/g' $PKG/usr/share/applications/org.gnome.Epiphany.desktop
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true