Open links and urls in AppImage

* Fixes #8721
This commit is contained in:
Jonathan White 2024-04-24 07:41:08 -04:00
parent 04fac249f9
commit 4f12f57a0b
2 changed files with 8 additions and 0 deletions

View File

@ -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();

View File

@ -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()