mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix MacOS login items showing ambigious name (#11373)
This commit is contained in:
@@ -130,6 +130,8 @@ void MacUtils::setLaunchAtStartup(bool enable)
|
|||||||
if (enable) {
|
if (enable) {
|
||||||
QSettings agent(getLaunchAgentFilename(), QSettings::NativeFormat);
|
QSettings agent(getLaunchAgentFilename(), QSettings::NativeFormat);
|
||||||
agent.setValue("Label", qApp->property("KPXC_QUALIFIED_APPNAME").toString());
|
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("ProgramArguments", QStringList() << QApplication::applicationFilePath());
|
||||||
agent.setValue("RunAtLoad", true);
|
agent.setValue("RunAtLoad", true);
|
||||||
agent.setValue("StandardErrorPath", "/dev/null");
|
agent.setValue("StandardErrorPath", "/dev/null");
|
||||||
|
|||||||
Reference in New Issue
Block a user