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 Jonathan White
parent 90c63483c1
commit c3bd31c51b
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

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) {