[Nepomuk] Tagging from an outside application - effects not showing in Dolphin
Sebastian Trüg
trueg at kde.org
Mon Sep 20 16:59:50 CEST 2010
On 09/20/2010 02:38 PM, Luca Beltrame wrote:
> In data lunedì 20 settembre 2010 14:28:52, hai scritto:
>
> Thanks for the tip.
>
>> Nepomuk::Resource res(KUrl(QFileInfo("Password.txt").absolutePath()));
>
> I have just tested with this snippet, but apparently this does not work yet
> (dumpres gives the same error). Is there anything I can use to see what I'm
> doing wrong?
You need to make sure to give Resource an absolute path or a file URL.
I am not 100% sure QFileInfo(<filename>) will in fact resolve the file
path properly. Maybe you need to do that manually?
> Is there a method among the *uri() to show me the original URI of the file?
In 4.6 there will be toFile().nieUrl() but that is not in the bindings
yet I think.
More information about the Nepomuk
mailing list