[vlmc-devel] EffectsEngine: Don't look in the application directory on Linux.

Hugo Beauzée-Luyssen git at videolan.org
Fri Mar 25 11:12:55 CET 2011


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Mar 25 10:38:52 2011 +0100| [bd0db20f588ce3ad7d23cf2857b7da516678e821] | committer: Hugo Beauzée-Luyssen

EffectsEngine: Don't look in the application directory on Linux.

Just look in the dir specified in the frei0r specs.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=bd0db20f588ce3ad7d23cf2857b7da516678e821
---

 src/EffectsEngine/EffectsEngine.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/EffectsEngine/EffectsEngine.cpp b/src/EffectsEngine/EffectsEngine.cpp
index 6c2f40e..bac9af3 100644
--- a/src/EffectsEngine/EffectsEngine.cpp
+++ b/src/EffectsEngine/EffectsEngine.cpp
@@ -127,9 +127,6 @@ EffectsEngine::loadEffects()
 {
     QStringList     pathList;
 
-    /* Search in the application folder */
-    pathList << qApp->applicationDirPath() + "/effects/";
-
 #if defined( Q_OS_UNIX )
     const QProcessEnvironment &env = QProcessEnvironment::systemEnvironment();
     if ( env.contains( "FREI0R_PATH" ) == true )
@@ -142,6 +139,8 @@ EffectsEngine::loadEffects()
                     QString("/usr/lib/frei0r-1/" );
     }
 #elif defined ( Q_OS_WIN32 )
+    /* Search in the application folder */
+    pathList << qApp->applicationDirPath() + "/effects/";
     TCHAR       appDir[128];
     if ( GetModuleFileName( NULL, appDir, 128 ) > 0 )
     {



More information about the Vlmc-devel mailing list