https://bugs.kde.org/show_bug.cgi?id=314981
Bug ID: 314981
Summary: active-documentviewer desktop files are installed even
if app is not built
Classification: Unclassified
Product: okular
Version: 0.16.60
Platform: Compiled Sources
OS: Linux
Status: CONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
If the "ActiveApp" component is not available when Okular is built, then the
active-documentviewer executable is not included in the build (conditional in
active/CMakeLists.txt). However, the desktop files for the viewer are still
installed (unconditional in, e.g. generators/poppler/CMakeLists.txt which
installs active-documentviewer_pdf.desktop).
This means that "Reader" appears in the "Open With" menu for a supported MIME
type, but choosing it produces the cryptic message:
KDEInit could not launch 'active-documentviewer':
Could not find 'active-documentviewer' executable.
Reproducible: Always
Steps to Reproduce:
1. Build and install Okular without ActiveApp support (ensure that any old
acrtive-documentviewer executable is cleaned up).
2. Open a directory containing a PDF file in Dolphin or Konqueror.
3. From the context menu over the PDF file, choose "Open With" - "Reader".
Actual Results:
Error message as above.
Expected Results:
"Reader" should not appear in the context menu if it is not available.
Instead of having to conditionalise all of the installs, one solution which
appears to work is to add an additional entry to all of the
generators/*/active-documentviewer_*.desktop and the
active/app/active-documentviewer.desktop files:
TryExec=active-documentviewer
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Okular-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/okular-devel