mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-02 14:52:55 -08:00
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:
8 files changed
+119
-52
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user