diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 816d3ace1..e38b943ac 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -971,7 +971,11 @@ void DatabaseWidget::openUrlForEntry(Entry* entry) } else { QUrl url = QUrl::fromUserInput(entry->resolveMultiplePlaceholders(entry->url())); if (!url.isEmpty()) { +#ifdef KEEPASSXC_DIST_APPIMAGE + QProcess::execute("xdg-open", {url.toString(QUrl::FullyEncoded)}); +#else QDesktopServices::openUrl(url); +#endif if (config()->get(Config::MinimizeOnOpenUrl).toBool()) { getMainWindow()->minimizeOrHide(); diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index d576ff70a..1f1e459e7 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -1205,7 +1205,11 @@ void MainWindow::showUpdateCheckDialog() void MainWindow::customOpenUrl(QString url) { +#ifdef KEEPASSXC_DIST_APPIMAGE + QProcess::execute("xdg-open", {url}); +#else QDesktopServices::openUrl(QUrl(url)); +#endif } void MainWindow::openDonateUrl()