From 8d76c511817243b76417f223081e8b8e9e438817 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 17 Oct 2011 12:48:25 +0000 Subject: [PATCH] 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 --- src/Qtx/QtxWebBrowser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.2