1 --- vcl/unx/source/plugadapt/salplug.cxx 2005-06-21 09:49:05.563280678 +0200
2 +++ vcl/unx/source/plugadapt/salplug.cxx 2005-06-21 10:19:57.119254553 +0200
3 @@ -464,9 +464,11 @@ SalInstance *CreateSalInstance()
4 if( ! pInst && pUsePlugin && *pUsePlugin )
5 pInst = tryInstance( OUString::createFromAscii( pUsePlugin ) );
9 - pInst = tryInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "gen" ) ) );
10 + // fallback, try everything
11 + const char* pPlugin[] = { "gtk", "kde", "gen", 0 };
13 + for ( int i = 0; !pInst && pPlugin[ i ]; ++i )
14 + pInst = tryInstance( OUString::createFromAscii( pPlugin[ i ] ) );