Skip to content

Commit

Permalink
fix: set QTWEBENGINE_DICTIONARIES_PATH to fix spell checker (#199)
Browse files Browse the repository at this point in the history
Make sure Qt WebEngine uses the dictionaries path resolved by the app
  • Loading branch information
cesar19004 authored Oct 9, 2024
1 parent 3ad375a commit 40da519
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 40da519

Please sign in to comment.