From: vsr Date: Mon, 17 Oct 2011 12:48:25 +0000 (+0000) Subject: 0020512: EDF 1113 OTHER : Using webkit to display documentation X-Git-Tag: V6_4_0a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d76c511817243b76417f223081e8b8e9e438817;p=modules%2Fgui.git 0020512: EDF 1113 OTHER : Using webkit to display documentation Process PDF files: additional fix to unset LD_LIBRARY_PATH before starting external program to avoid 'unresolved symbol' message --- diff --git a/src/Qtx/QtxWebBrowser.cxx b/src/Qtx/QtxWebBrowser.cxx index 98e39eb61..60219b5fa 100644 --- a/src/Qtx/QtxWebBrowser.cxx +++ b/src/Qtx/QtxWebBrowser.cxx @@ -397,7 +397,7 @@ void QtxWebBrowser::linkClicked( const QUrl& url ) foreach ( QString r, readers ) { QString reader = QString( "/usr/bin/%1" ).arg( r ); if ( QFileInfo( reader ).exists() ) { - ::system( QString( "%1 %2 &" ).arg( reader ).arg( url.toLocalFile() ).toLatin1().constData() ); + ::system( QString( "unset LD_LIBRARY_PATH; %1 %2 &" ).arg( reader ).arg( url.toLocalFile() ).toLatin1().constData() ); break; } }