mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 07:49:50 -05:00
Fix MacOS login items showing ambigious name (#11373)
This commit is contained in:
parent
4f8c204096
commit
f07db033c6
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user