Bug 418586

Summary: Opening cbr files without unrar installed gives a generic error message
Product: [Applications] okular Reporter: Kristen McWilliam <kmcwilliampublic>
Component: Comicbook backendAssignee: Okular developers <okular-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aacid
Priority: NOR    
Version: 1.9.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kristen McWilliam 2020-03-07 17:36:51 UTC
SUMMARY
When opening *.cbr files without unrar installed Okular returns a generic, unhelpful error message.


STEPS TO REPRODUCE
1. Open a cbr file when the unrar package is not installed on the system

OBSERVED RESULT
Okular makes a loud 'DING!' and provides a generic error:

Error - Okular

Could not open file:///path/to/file.cbr



EXPECTED RESULT
Expected a helpful error message such as:

"This file type requires the unrar package. Please install unrar to view comic books files."


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.4.22-1-MANJARO
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
When I tried to open a cbr file I got this error, and searching led me to a thread with someone who previously had the same issue and a question of "Do you have unrar installed?" - which I tried and it resolved the issue.

A simple change to the error message would help immensly and be more user-friendly. Even better would be a button to "Download" that could automatically search for unrar in the package manager, though I realize that could be much more difficult if not impossible.
Comment 1 Albert Astals Cid 2020-03-08 16:15:06 UTC
That's exactly what we say

https://i.imgur.com/nK3IhdM.png

I'm confused as to why you wouldn't be getting that message, anything in particular from your setup that you think may cause you to get a different error message?
Comment 2 Kristen McWilliam 2020-03-08 23:05:35 UTC
I am using the regular stable version of Manjaro KDE.

To confirm it isn't my setup I tried the same thing on another PC that has had almost no use since the Manjaro install, and it has the same result. Maybe something weird that Manjaro did on packaging?

https://i.imgur.com/vf3BJZq.png
Comment 3 Albert Astals Cid 2020-03-08 23:14:36 UTC
You could try asking to the Manjaro people, it works just fine in ArchLinux
Comment 4 Kristen McWilliam 2020-03-09 18:48:14 UTC
I made a bug report to the Manjaro folks, will see what they say:
https://forum.manjaro.org/t/okular-doesnt-provide-reason-for-failure-to-open-file/128499
Comment 5 Bug Janitor Service 2020-03-24 04:33:14 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2020-04-08 04:33:16 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!