Fix Native Messaging script path with BSDs (#8835)

Fixes https://github.com/keepassxreboot/keepassxc/issues/8830
This commit is contained in:
Sami Vänttinen 2022-12-19 05:56:31 +02:00 committed by GitHub
parent ad773c567d
commit 2d6f2f7895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,7 @@ QString NativeMessageInstaller::getNativeMessagePath(SupportedBrowsers browser)
} else {
basePath = QDir::homePath() + "/.config";
}
#elif defined(Q_OS_LINUX)
#elif defined(Q_OS_LINUX) || (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS))
if (browser == SupportedBrowsers::TOR_BROWSER) {
basePath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
} else if (browser == SupportedBrowsers::FIREFOX) {