-
-
Notifications
You must be signed in to change notification settings - Fork 12
DefaultPlug: add settings for pdf viewer #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| var pdf_setting = new SettingsChild ( | ||
| _("PDF Viewer"), | ||
| "application/pdf" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: