Skip to content

Commit

Permalink
Re #6630. RedHat systems call qt assistant something else.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Mar 13, 2013
1 parent f9c9b1a commit ab34d7c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Code/Mantid/MantidPlot/src/HelpWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,19 @@ void HelpWindow::determineFileLocs()
if (!Poco::File(m_assistantExe).exists())
{
m_log.debug() << "File \"" << m_assistantExe << "\" does not exist\n";
m_assistantExe = "/usr/bin/assistant";
m_assistantExe = "/usr/local/bin/assistant";
if (!Poco::File(m_assistantExe).exists())
{
m_log.debug() << "File \"" << m_assistantExe
<< "\" does not exist. Assuming it is elsewhere in the path.\n";
m_assistantExe = "assistant";
m_log.debug() << "File \"" << m_assistantExe << "\" does not exist\n";
m_assistantExe = "/usr/bin/assistant-qt4";
if (!Poco::File(m_assistantExe).exists())
{
m_log.debug() << "File \"" << m_assistantExe
<< "\" does not exist. Assuming it is elsewhere in the path.\n";
m_assistantExe = "assistant";
}
}
}
m_assistantExe = "/usr/bin/assistant";
#else
// windows it is next to MantidPlot
m_assistantExe = Poco::Path(binDir, "assistant").absolute().toString();
Expand Down

0 comments on commit ab34d7c

Please sign in to comment.