| Summary: | Links doesn't open in browser, the page gets downloaded and a pop up appears asking you how to open the downloaded file. | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | haxel <hikax92243> |
| Component: | PDF backend | Assignee: | Okular developers <okular-devel> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | alx5000, nicolas.fella, postix |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=439477 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | the pop up that appears. | ||
|
Description
haxel
2024-06-02 16:33:44 UTC
In my case (Ubuntu 24.04 LTS with okular 4:23.08.5-0ubuntu5), the URLs are first queried and then the default text/html handler is opened (Kate on my machine), instead of being opened directly by Firefox (my default browser). If I change the file association for text/html to Firefox, Okular first fetches the URL and then passes it (the URL, not the fetched file) to Firefox, so in essence the resourced is retrieved twice (confirmed with Wireshark). I think this behavior is due to the following change, in which KRun is replaced with KIO::OpenUrlJob: https://github.com/KDE/okular/commit/1b479dfb7b Not a QT or KDE expert, but could this maybe be replaced with QDesktopServices::openUrl()? I can confirm that after changing the URL handling methods to QDesktopServices::openUrl(), links are opened directly in Firefox. Note: the sources for my version didn't have the KRun->KIO::OpenUrlJob change yet, so maybe something changed in KRun? |