| Summary: | KBibTeX defaults to the wrong PDF viewer when I click "View Document" | ||
|---|---|---|---|
| Product: | [Applications] KBibTeX | Reporter: | neuroshock |
| Component: | General | Assignee: | Thomas Fischer <fischer> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 0.10 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
neuroshock
2024-01-15 14:50:09 UTC
KBibTeX does not decide on its own how to open the PDF file; this decision is delegated to the KDE subsystem via KIO::OpenUrlJob: https://api.kde.org/frameworks/kio/html/classKIO_1_1OpenUrlJob.html I guess that for KDE no PDF viewer is configured and, as it is not aware about Gnome's settings, simply picks the "first" PDF viewer which happens to be Xournal++. As a short-term solution, you can change it either via KDE's system settings or in Dolphin via the "Open with" setting for the PDF mime type in the properties dialog available via right-click on an arbitrary PDF file. https://userbase.kde.org/Special:MyLanguage/System_Settings/File_Associations As a long-term solution, you can push both Gnome and KDE to figure out a way to easily synchronize file associations or honor each other's settings. Thanks. Based on your comment, it looks like it's possible to solve this problem by editing the file ~/.config/mimeapps.list, which appears to control file associations for KDE-based appliations like KBibTeX. If the goal is to ensure that PDF files should be associated with the Gnome app Evince, then one needs to ensure that mimeapps.list contains the following line: application/pdf=evince.desktop; |