qutebrowser: dictionaries path

This commit is contained in:
Đoàn Trần Công Danh 2024-06-25 20:48:56 +07:00
parent c6f0fc278f
commit 959112ffb6
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,31 @@
--- a/misc/apparmor/usr.bin.qutebrowser
+++ b/misc/apparmor/usr.bin.qutebrowser
@@ -33,12 +33,12 @@ profile qutebrowser /usr/{local/,}bin/qu
/usr/bin/ldconfig ix,
/usr/bin/uname ix,
/usr/bin/qutebrowser rix,
- /usr/lib/qt/libexec/QtWebEngineProcess mrix,
+ /usr/lib/qt6/libexec/QtWebEngineProcess mrix,
/usr/share/pdf.js/** r,
- /usr/share/qt/translations/qtwebengine_locales/* r,
- /usr/share/qt/qtwebengine_dictionaries r,
- /usr/share/qt/qtwebengine_dictionaries/* r,
- /usr/share/qt/resources/* r,
+ /usr/share/qt6/translations/qtwebengine_locales/* r,
+ /usr/share/qt6/qtwebengine_dictionaries r,
+ /usr/share/qt6/qtwebengine_dictionaries/* r,
+ /usr/share/qt6/resources/* r,
owner @{HOME}/ r,
owner /dev/shm/.org.chromium* rw,
--- a/qutebrowser/browser/webengine/spell.py
+++ b/qutebrowser/browser/webengine/spell.py
@@ -28,7 +28,7 @@ def version(filename):
def dictionary_dir():
"""Return the path (str) to the QtWebEngine's dictionaries directory."""
- return os.path.join(standarddir.data(), 'qtwebengine_dictionaries')
+ return '/usr/share/qt6/qtwebengine_dictionaries'
def local_files(code):

View File

@ -1,7 +1,7 @@
# Template file for 'qutebrowser'
pkgname=qutebrowser
version=3.2.0
revision=1
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools asciidoc"
depends="python3-Jinja2 python3-yaml"