From f07db033c6d5a4f2d21476850d7a66abd6a96fc1 Mon Sep 17 00:00:00 2001 From: vallode <18506096+vallode@users.noreply.github.com> Date: Thu, 17 Oct 2024 09:37:38 +0200 Subject: [PATCH] Fix MacOS login items showing ambigious name (#11373) --- src/gui/osutils/macutils/MacUtils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/osutils/macutils/MacUtils.cpp b/src/gui/osutils/macutils/MacUtils.cpp index 107cd3a29..15f55d94c 100644 --- a/src/gui/osutils/macutils/MacUtils.cpp +++ b/src/gui/osutils/macutils/MacUtils.cpp @@ -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");