Skip to content

Commit

Permalink
Fix MacOS login items showing ambigious name (#11373)
Browse files Browse the repository at this point in the history
  • Loading branch information
vallode authored Oct 17, 2024
1 parent 4f8c204 commit f07db03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/osutils/macutils/MacUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f07db03

Please sign in to comment.