mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-26 11:56:46 -08:00
1 parent
2a62000b28
commit
1fd8923746
3 files changed
+28
-16
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user