Summary: | kioexec is used, even if the application enables its own network transparency with %u | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | magnus.gross21 |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | a.samirh78, bizyaev, edj7890, herzenschein, kde, kdelibs-bugs, meso5, nate |
Priority: | NOR | ||
Version: | 5.83.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kio/commit/bba0a515ba6aff35cdb66ae9b462faa1059b70e9 | Version Fixed In: | |
Sentry Crash Report: |
Description
magnus.gross21
2021-06-24 22:01:16 UTC
Sorry my bad, this is a bug from the Telegram side. They forgot to put the MimeType line into the local desktop file (but did not forget to put it into the systemwide desktop file). I will close this now. Actually this is a KDE bug after all. While it is true, that the local desktop file does not contain the MimeType line, the ~/.config/mimeapps.list file contains a line, that the above mentioned local desktop file is the handler for tg:// links, which should be enough already to make it the default application. Unfortunately it seems that while kio respects that now the local desktop file is the default application, it seems to forget about the fact that the Exec line contains %u and incorrectly assumes that Telegram needs network transparency handled by kioexec. The problem is that when the desktop file does not define the MimeType handler but the user says that the program should be the default for that handler, then kde-open5 will open the service with the respective mimetype not set, which will cause the resultingArguments() method to think that it cannot handle %u for that mimetype EVEN THOUGH the user overwrote the mimeapps.list such that the program is the default for that mimetype (currently default for some mimetype does not imply that the desktop file contains the Mimetype line for that mimetype, which is the problem here). I am seeing this with several applications (but not with Thunderbird). Eg clicking on any link in Okular and LibreOffice among other applications triggers kioexec caching and then the cached copy of the web page is opened in Firefox. That copy often doesn't look as it should, and the actual URL is not available on the Firefox address bar. Also, there is no trace of the page or URL in the next session as the cache is apparently flushed between sessions. More details here: https://www.reddit.com/r/kde/comments/oj1gc5/kioexec_caches_web_pages_for_firefox/ Operating System: Debian GNU/Linux 11 KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.10.0-8-amd64 OS Type: 64-bit This sounds like bug 439477 which has been fixed by https://invent.kde.org/frameworks/kio/-/merge_requests/498 Could you test? Nope, this bug has nothing to do with kopenwithdialog. The desktop file is generated and made default by Telegram Desktop itself. It's not directly related to kopenwithdialog, it's more to do with the .desktop file Exec line not having %u or %U. Reading the report again, I see that you mentioned %u is used in the file, right? Yes the desktop file contains %u Related to (duplicate of?) bug 434362 *** Bug 437612 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/719 *** Bug 439623 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/720 Git commit bba0a515ba6aff35cdb66ae9b462faa1059b70e9 by Nicolas Fella. Committed on 31/01/2022 at 00:17. Pushed by nicolasfella into branch 'master'. [desktopexecparser] Consider associations from mimeapps.list to determine whether an app supports a scheme Currently we check whether an app has MimeType=x-scheme-handler/foo in its desktop file. This breaks for some apps, e.g. thunderbird handles mailto but does not always have it marked as such in its desktop file. Also it ignores manual associations in mimeapps.list Check whether the relevant app is in the list of possible handlers for that url scheme and don't use kioexec in that case Related: bug 440062 M +10 -0 src/core/desktopexecparser.cpp https://invent.kde.org/frameworks/kio/commit/bba0a515ba6aff35cdb66ae9b462faa1059b70e9 *** Bug 434362 has been marked as a duplicate of this bug. *** |