mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-06 05:24:13 -04:00
parent
2a62000b28
commit
1fd8923746
3 changed files with 28 additions and 16 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "NativeMessageInstaller.h"
|
||||
#include "BrowserSettings.h"
|
||||
#include "config-keepassx.h"
|
||||
#include "core/Config.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
|
@ -209,8 +210,8 @@ QString NativeMessageInstaller::getNativeMessagePath(SupportedBrowsers browser)
|
|||
QString basePath;
|
||||
#if defined(Q_OS_WIN)
|
||||
// If portable settings file exists save the JSON scripts to the application folder
|
||||
if (QFile::exists(QCoreApplication::applicationDirPath() + QStringLiteral("/keepassxc.ini"))) {
|
||||
basePath = QCoreApplication::applicationDirPath();
|
||||
if (Config::isPortable()) {
|
||||
basePath = Config::portableConfigDir();
|
||||
} else {
|
||||
basePath = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue