Improve error message when browser proxy cannot be found (#9385)

Co-authored-by: Blessio <[email protected]>
Co-authored-by: Jonathan White <[email protected]>
This commit is contained in:
Jonathan WhiteandBlessio committed 2023-08-05 21:20:45 -04:00
1 parent 4ea0a1058c
commit 663d4d99ae
8 files changed
+119 -52

No files matched your search

+12 -5
View File
@@ -272,17 +272,24 @@ QString constructFlatpakPath()
#endif
/**
* Gets the path to keepassxc-proxy binary
*
* @param location Custom proxy path
* @return path Path to keepassxc-proxy
* Returns the effective proxy path used to build the native messaging JSON script
*/
QString NativeMessageInstaller::getProxyPath() const
{
QString result;
if (browserSettings()->useCustomProxy()) {
return browserSettings()->customProxyLocation();
result = browserSettings()->customProxyLocation();
} else {
result = getInstalledProxyPath();
}
return result;
}
/**
* Returns the original proxy path at the time of installation
*/
QString NativeMessageInstaller::getInstalledProxyPath() const
{
QString path;
#if defined(KEEPASSXC_DIST_APPIMAGE)
path = QProcessEnvironment::systemEnvironment().value("APPIMAGE");