diff options
author | Charadon <dev@iotib.net> | 2022-10-02 21:12:06 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-03 23:19:38 +0700 |
commit | 1246fd5cebabcfb2a6287920e2ca2a2ea44ad5c0 (patch) | |
tree | f4bb7da03df716fbad0816e04e82c3947c36613e | |
parent | 39c23d485a57b4a567a595f5039e35f96dcac99d (diff) |
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/README | 3 | ||||
-rw-r--r-- | network/epiphany/epiphany.SlackBuild | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/network/epiphany/README b/network/epiphany/README index 4b11aae5a74c..e1689730b356 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 1d50f6b6e183..3c84b811ad7a 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 |