Date: Friday, April 6, 2018 @ 18:17:00
  Author: demize
Revision: 314593

Force-disable QtWebEngine sandbox FS#57540

Modified:
  anki/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-04-06 17:15:33 UTC (rev 314592)
+++ PKGBUILD    2018-04-06 18:17:00 UTC (rev 314593)
@@ -7,7 +7,7 @@
 
 pkgname=anki
 pkgver=2.1.0beta37
-pkgrel=1
+pkgrel=2
 
 pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
 url="https://ankisrs.net/";
@@ -36,7 +36,11 @@
   mkdir -p "$pkgdir"/usr/{bin,share/{anki,pixmaps,applications,man/man1}}
   cp -av * "$pkgdir"/usr/share/anki/
   cd "$pkgdir"/usr/share/anki
+
   mv tools/runanki.system "$pkgdir"/usr/bin/anki
+  # Work around https://bugs.archlinux.org/task/57540
+  sed -i '$ iimport os\nos.environ["QTWEBENGINE_DISABLE_SANDBOX"] = "1"' 
"$pkgdir"/usr/bin/anki
+
   mv anki.xpm anki.png "$pkgdir"/usr/share/pixmaps
   mv anki.desktop "$pkgdir"/usr/share/applications
   mv anki.1 "$pkgdir"/usr/share/man/man1

Reply via email to