Index: src/ugenecl/src/Main.cpp =================================================================== --- src/ugenecl/src/Main.cpp (revision 2012) +++ src/ugenecl/src/Main.cpp (working copy) @@ -166,9 +166,6 @@ } else if( QDir(appDirPath+RELATIVE_DEV_DATA_DIR).exists() ) { //data location for developers dataSearchPaths.push_back( appDirPath+RELATIVE_DEV_DATA_DIR ); } - if( dataSearchPaths.empty() ) { - dataSearchPaths.push_back("/"); - } #if (defined(Q_OS_LINUX) || defined(Q_OS_UNIX)) && defined( UGENE_DATA_DIR ) //using directory which is set during installation process on linux @@ -178,6 +175,10 @@ } #endif + if( dataSearchPaths.empty() ) { + dataSearchPaths.push_back("/"); + } + QDir::setSearchPaths( PATH_PREFIX_DATA, dataSearchPaths ); //now data files may be opened using QFile( "data:some_data_file" ) } Index: src/ugeneui/src/Main.cpp =================================================================== --- src/ugeneui/src/Main.cpp (revision 2012) +++ src/ugeneui/src/Main.cpp (working copy) @@ -152,9 +152,6 @@ } else if( QDir(appDirPath+RELATIVE_DEV_DATA_DIR).exists() ) { //data location for developers dataSearchPaths.push_back( appDirPath+RELATIVE_DEV_DATA_DIR ); } - if( dataSearchPaths.empty() ) { - dataSearchPaths.push_back("/"); - } #if (defined(Q_OS_LINUX) || defined(Q_OS_UNIX)) && defined( UGENE_DATA_DIR ) //using directory which is set during installation process on Linux @@ -164,6 +161,10 @@ } #endif + if( dataSearchPaths.empty() ) { + dataSearchPaths.push_back("/"); + } + QDir::setSearchPaths( PATH_PREFIX_DATA, dataSearchPaths ); //now data files may be opened using QFile( "data:some_data_file" ) }