From 40da519b2727792e428625e90f8b35ed3b7ea220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Quintana?= <43949299+cesar19004@users.noreply.github.com> Date: Wed, 9 Oct 2024 02:24:13 -0600 Subject: [PATCH] fix: set QTWEBENGINE_DICTIONARIES_PATH to fix spell checker (#199) Make sure Qt WebEngine uses the dictionaries path resolved by the app --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index c771f71..af66f62 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -34,6 +34,8 @@ int main(int argc, char *argv[]) { QApplication::setOrganizationName("org.keshavnrj.ubuntu"); QApplication::setApplicationVersion(VERSIONSTR); + qputenv("QTWEBENGINE_DICTIONARIES_PATH",Dictionaries::GetDictionaryPath().toUtf8().constData()); + QCommandLineParser parser; parser.setApplicationDescription( QObject::tr("Feature rich WhatsApp web client based on Qt WebEngine"));