DefaultPlug: add settings for pdf viewer#267
Conversation
|
|
||
| var pdf_setting = new SettingsChild ( | ||
| _("PDF Viewer"), | ||
| "application/pdf" |
There was a problem hiding this comment.
I wonder if we should change this to "Document Viewer" and also change some of these other document file types? https://gitlab.gnome.org/GNOME/papers/-/blob/main/meson.build?ref_type=heads#L220
There was a problem hiding this comment.
I'm not opposed to your suggestion, but other PDF viewers may not support most of those content types. Should we really want to do this? 🤔
The following warnings are shown when selecting Okular:
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.109: DefaultPlug.vala:154: Okular does not support content type application/vnd.comicbook-rar
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.115: DefaultPlug.vala:154: Okular does not support content type application/vnd.comicbook+zip
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.119: DefaultPlug.vala:154: Okular does not support content type application/x-cb7
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.143: DefaultPlug.vala:154: Okular does not support content type application/x-ext-cb7
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.146: DefaultPlug.vala:154: Okular does not support content type application/x-ext-cbr
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.148: DefaultPlug.vala:154: Okular does not support content type application/x-ext-cbt
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.153: DefaultPlug.vala:154: Okular does not support content type application/x-ext-cbz
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.158: DefaultPlug.vala:154: Okular does not support content type application/x-ext-djv
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.163: DefaultPlug.vala:154: Okular does not support content type application/x-ext-djvu
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.172: DefaultPlug.vala:154: Okular does not support content type image/vnd.djvu+multipage
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.175: DefaultPlug.vala:154: Okular does not support content type application/illustrator
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.191: DefaultPlug.vala:154: Okular does not support content type application/x-ext-pdf
(io.elementary.settings:33919): io.elementary.settings.applications-CRITICAL **: 14:56:52.200: DefaultPlug.vala:154: Okular does not support content type application/x-xzpdf
There was a problem hiding this comment.
I pushed the changes to https://github.com/elementary/settings-applications/tree/research/ryonakano/default-pdf for test
danirabbit
left a comment
There was a problem hiding this comment.
Let's go with this as-is and we can always re-evaluate adding more types later if necessary :)
Fixes #266
I also refactored
get_types_for_app ()while I'm here.Checklist
I installed Okular from Flathub and confirmed that: