Skip to content

Commit

Permalink
fix #1417
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Jun 27, 2024
1 parent c7f381b commit 53d6f87
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/librssguard/miscellaneous/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,17 @@ Application::Application(const QString& id, int& argc, char** argv, const QStrin

#if defined(NO_LITE)
if (!m_forcedLite && qEnvironmentVariableIsEmpty("QTWEBENGINE_CHROMIUM_FLAGS")) {
qputenv("QTWEBENGINE_CHROMIUM_FLAGS",
settings()->value(GROUP(Browser), SETTING(Browser::WebEngineChromiumFlags)).toString().toLocal8Bit());
QString flags = settings()->value(GROUP(Browser), SETTING(Browser::WebEngineChromiumFlags)).toString();

// NOTE: We do not want sandbox on Linux builds.
#if defined(Q_OS_LINUX) && !defined(IS_FLATPAK_BUILD)
if (!flags.contains(QSL("--no-sandbox"))) {
qDebugNN << LOGSEC_CORE << "Appending --no-sandbox to QTWEBENGINE_CHROMIUM_FLAGS.";
flags.append(QSL(" --no-sandbox"));
}
#endif

qputenv("QTWEBENGINE_CHROMIUM_FLAGS", flags.toLocal8Bit());
}
#endif

Expand Down

0 comments on commit 53d6f87

Please sign in to comment.