[Kde-bindings] branches/work/kdebindings-smoke2/csharp

Sebastian Sauer mail at dipe.org
Tue Feb 19 21:12:11 CET 2008


On Tuesday 19 February 2008, Aaron J. Seigo wrote:
> On Monday 18 February 2008, Richard Dale wrote:
> > On Monday 18 February 2008 22:13:38 Sebastian Sauer wrote:
> > > 1. in applet.cpp#132 the line;
> > >
> > > QString path = KStandardDirs::locate("appdata","plasmoids/" +
> > > appletDescription.pluginName() + '/');
> > >
> > > KStandardDirs::locate does work on files and not on directories. So, it
>
> after testing, i can tell you that you are, thankfully, quite wrong.
>
> in KStandardDirs::exists there is this code:
>
>     if (access(QFile::encodeName(fullPath), R_OK) == 0 && KDE_stat(
> QFile::encodeName(fullPath), &buff ) == 0)
>         if (fullPath.at(fullPath.length() - 1) != '/') {
>             if (S_ISREG( buff.st_mode ))
>                 return true;
>         } else
>             if (S_ISDIR( buff.st_mode ))
>                 return true;

woah, seems I was testing against a wrong/outdated tiger+qscript-engine :-/ 
10h lost to work on the wrong codebase and even without drinking one bottle 
of bear in between (maybe that was the reason, heh).

thanks :)

> it's even in the API docu in one place =)

y, at the ::exists, through ::locate, ::findResource, all samples, etc. say 
filename. conclusion; don't trust to much in the dox and in what svn status 
lists :-/


More information about the Panel-devel mailing list