Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#451 Can't access Help and General Report Manager pages under Ubuntu 12.04

1.2.0
closed-duplicate
Nikolay
5
2015-01-09
2014-08-06
Ed Rubinsky
No

Under Ubuntu 12.04 (at least) neither the General report Manager or Help pages can be accessed. Clicking on either one results in a page not found error with the URLs being

fle:///usr/local/share/mmex/help/index.html

fle:///usr/local/share/mmex/help/general_report_manager.html.

when they should be

fle:///usr/local/share/doc/mmex/help/index.html

fle:///usr/local/share/doc/mmex/help/general_report_manager.html.

The problem is that the function getPathDoc in src/patchs.cpp is calling getSharedDir() instead of getDocDir() resulting in the 'share/doc' sub-directory not being included in the path. The following patch seems to fix the problem.

+++ b/src/paths.cpp
@@ -134,7 +134,7 @@ wxString mmex::getPathDoc(const EDocFile& f)

     wxASSERT(f >= 0 && f < DOC_FILES_MAX);

-    wxString path = GetSharedDir().GetPath();
+    wxString path = GetDocDir().GetPath();
     path += wxFileName::GetPathSeparator();
     path += files[f];

Discussion


  • Anonymous
    2014-11-03

    file:///usr/local/share/mmex/help/index.html

    /usr/bin/install -c -d /usr/local/share/doc/mmex/help
    (cd ../doc/help ; /usr/bin/install -c -m 644 .html .png /usr/local/share/doc/mmex/help)
    /usr/bin/install -c -d /usr/local/share/doc/mmex/help/german
    (cd ../doc/help/german ; /usr/bin/install -c -m 644 * /usr/local/share/doc/mmex/help/german)
    /usr/bin/install -c -d /usr/local/share/doc/mmex/help/french
    (cd ../doc/help/french ; /usr/bin/install -c -m 644 * /usr/local/share/doc/mmex/help/french)
    /usr/bin/install -c -d /usr/local/share/doc/mmex/help/hungarian
    (cd ../doc/help/hungarian ; /usr/bin/install -c -m 644 * /usr/local/share/doc/mmex/help/hungarian)
    /usr/bin/install -c -d /usr/local/share/doc/mmex/help/italian
    (cd ../doc/help/italian ; /usr/bin/install -c -m 644 * /usr/local/share/doc/mmex/help/italian)
    /usr/bin/install -c -d /usr/local/share/doc/mmex/help/polish
    (cd ../doc/help/polish ; /usr/bin/install -c -m 644 * /usr/local/share/doc/mmex/help/polish)
    /usr/bin/install -c -d /usr/local/share/doc/mmex/help/russian
    (cd ../doc/help/russian ; /usr/bin/install -c -m 644 * /usr/local/share/doc/mmex/help/russian)
    /usr/bin/install -c -d /usr/local/share/doc/mmex/help/spanish
    (cd ../doc/help/spanish ; /usr/bin/install -c -m 644 * /usr/local/share/doc/mmex/help/spanish)
    /usr/bin/install -c -d /usr/local/share/applications

     
  • Nikolay
    Nikolay
    2014-11-03

    I think it should be
    file:///usr/local/share/mmex/doc/help/index.html

     
  • Nikolay
    Nikolay
    2015-01-09

    • status: open --> closed-duplicate
    • Group: 1.1.1 --> 1.2.0
     


Anonymous


Cancel   Add attachments