Fix MacOS login items showing ambigious name (#11373)

This commit is contained in:
vallode 2024-10-17 09:37:38 +02:00 committed by GitHub
parent 4f8c204096
commit f07db033c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,6 +130,8 @@ void MacUtils::setLaunchAtStartup(bool enable)
if (enable) {
QSettings agent(getLaunchAgentFilename(), QSettings::NativeFormat);
agent.setValue("Label", qApp->property("KPXC_QUALIFIED_APPNAME").toString());
agent.setValue("AssociatedBundleIdentifiers", qApp->property("KPXC_QUALIFIED_APPNAME").toString());
agent.setValue("Program", QApplication::applicationFilePath());
agent.setValue("ProgramArguments", QStringList() << QApplication::applicationFilePath());
agent.setValue("RunAtLoad", true);
agent.setValue("StandardErrorPath", "/dev/null");