qutebrowser: fix userscripts directory path

This commit is contained in:
rnhmjoj 2022-04-13 09:49:42 +02:00
parent bfa6f1553a
commit 17c2ca9084
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450

View File

@ -77,7 +77,7 @@ in mkDerivationWith python3Packages.buildPythonApplication rec {
postPatch = ''
substituteInPlace qutebrowser/misc/quitter.py --subst-var-by qutebrowser "$out/bin/qutebrowser"
sed -i "s,/usr/share/,$out/share/,g" qutebrowser/utils/standarddir.py
sed -i "s,/usr,$out,g" qutebrowser/utils/standarddir.py
'' + lib.optionalString withPdfReader ''
sed -i "s,/usr/share/pdf.js,${pdfjs},g" qutebrowser/browser/pdfjs.py
'';