mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-27 06:04:42 -05:00
Improve error message when browser proxy cannot be found (#9385)
Co-authored-by: Blessio <blessio.blog@blessio.com> Co-authored-by: Jonathan White <support@dmapps.us>
This commit is contained in:
parent
4ea0a1058c
commit
663d4d99ae
8 changed files with 119 additions and 52 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue