[kde-edu]: findResource() vs. locate()

Jason Harris kstars at 30doradus.org
Mon Mar 26 19:16:57 CEST 2007


Hello,

I'm sure this is some silly misunderstanding on my part.  Consider the 
following code:

  KStandardDirs ksd;
  kDebug() << "findResource(): " << ksd.findResource( "appdata", 
"clines.dat" ) << endl;
  kDebug() << "locate(): " << KStandardDirs::locate( "appdata", 
"clines.dat" ) << endl;

The output of this is:

  kstars: findResource():
  kstars: locate(): /opt/kde4/share/apps/kstars/clines.dat

Does anyone know why findResource() returns an empty string here, rather 
than the path to clines.dat ?

thanks,
Jason


More information about the kde-edu mailing list