[Okular-devel] [okular] [Bug 314981] New: active-documentviewer desktop files are installed even if app is not built

Jonathan Marten jjm at keelhaul.me.uk
Tue Feb 12 09:25:05 UTC 2013


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: okular-devel at kde.org
          Reporter: jjm at keelhaul.me.uk

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.


More information about the Okular-devel mailing list