Hi Stephan,

Sorry for the delay,

Le 1 oct. 09 à 09:33, Stephan Bergmann a écrit :

On 10/01/09 00:46, eric b wrote:
    rtl::OUString aUserConfigFile;
    rtl::OUString aIniPath;
// read the content of bootstraprc is necessary to find the path to the user configuration file
    // ~/.ooo4kids/0.6/user/OOo4Kidsrc.txt
Bootstrap::get( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "BRAND_BASE_DIR") ), aIniPath ); aIniPath += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/ program/" SAL_CONFIGFILE( "bootstrap" ) ) );
    Bootstrap aBootstrap(aIniPath);
aBootstrap.getFrom( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ("OOo4KidsIntegrationUserFile") ), aUserConfigFile );

Yes, and you can condense that to

rtl::OUString aUserConfigFile(
  RTL_CONSTASCII_USTRINGPARAM(
    "${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("bootstrap")
    ":OOo4KidsIntegrationUserFile}"));
Bootstrap::expandMacros(aUserConfigFile);



Ok, I'll give it a try asap (got a Linux PowerPC at hand). I'll confirm it's ok too.


(my previous attempt at writing that down had a number of typos)


Well, I do myself lot of typos, and didn't care too much : what helped me was not in the code itself, but in the explanation ;)


Regards,
Eric

--
qɔᴉɹə




Reply via email to