fix: set application policy on macOS for extension (#6043)

This commit is contained in:
nerix
2025-03-08 18:03:33 +01:00
committed by GitHub
parent c041804b03
commit f78f22e439
5 changed files with 22 additions and 1 deletions
+7
View File
@@ -15,6 +15,10 @@
#include "util/AttachToConsole.hpp"
#include "util/IpcQueue.hpp"
#ifdef Q_OS_MACOS
# include "util/MacOsHelpers.h"
#endif
#include <QApplication>
#include <QCommandLineParser>
#include <QMessageBox>
@@ -73,6 +77,9 @@ int main(int argc, char **argv)
// run in gui mode or browser extension host mode
if (args.shouldRunBrowserExtensionHost)
{
#ifdef Q_OS_MACOS
::chatterinoSetMacOsActivationPolicyProhibited();
#endif
runBrowserExtensionHost();
}
else if (args.printVersion)