Hi Brian,

In order to add the MIME-type into the desktop environment during
installation, I added the following to
file-integration/CMakeLists.txt:
find_program(XDG-MIME_EXECUTABLE xdg-mime)
find_program(XDG-DESKTOP-MENU_EXECUTABLE xdg-desktop-menu)
install(CODE "
execute_process(COMMAND ${XDG-MIME_EXECUTABLE} install --novendor basket.xml)
execute_process(COMMAND ${XDG-DESKTOP-MENU_EXECUTABLE} install
--novendor basket.desktop)
execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default basket.desktop
application/x-basket-item)
")

Now I am going to continue on the actual Nepomuk stuff. Could you
please help with changing the Application::newInstance() function so
that when the application starts and a ".basket" file is passed to it
as an argument, it would open that basket (instead of nagging about
the file not being an archive file).

P.S. Please excuse my English :D

Cheers,
Amir

On Mon, Sep 6, 2010 at 11:38 PM, Amir Pakdel <pak...@gmail.com> wrote:
> Hi Brian,
>
> On Mon, Sep 6, 2010 at 10:52 PM, Brian Milco <bcmi...@gmail.com> wrote:
>> Hi Amir,
>>
>> I think the idea of Nepomuk integration is very exciting, I don't really
>> have any experience with it, but if you'd like another pair of hands I'd be
>> happy to help! :)
>>
> That would be Great! Thanks :))
> Currently the problem is to set up the MIME-type thing; could you help
> me with including MIME-type installation in the CMakeList.txt files?
> After that I would be able to submit a patch that adds "Tag" of notes
> into the Nepomuk and they would be searchable (via KRunner) and the
> search result can be opened using the "Basket Note Pads".
>> On Mon, Sep 6, 2010 at 12:12 AM, Amir Pakdel <pak...@gmail.com> wrote:
>>>
>>> I found the following line in basketbasket/src/basketlistview.cpp:
>>> QString BasketTreeListView::TREE_ITEM_MIME_STRING =
>>> "application/x-basket-item";
>>>
>>> Therefore, I thought that "application/x-basket-item" would be a right
>>> choice.
>>
>> I can't really speak to your main points, but you should note that there is
>> also another MIME string:
>> notedrag.cpp: const char * NoteDrag::NOTE_MIME_STRING =
>> "application/x-basket-note";
>>
>> x-basket-item refers to the tree items, and x-basket-note refers to the
>> actual notes in the baskets.
>>
> For the moment I am trying to add metadata of tree items (baskets)
> into the Nepomuk. IMO it would be easier add a MIME-type for '.basket'
> files (which correspond to tree items or baskets) because they have a
> fixed file name and content structure, but actual notes can be HTML
> files or Images or any other kind of file. Moreover, once baskets
> (tree items) are added to the Nepomuk, we may be able to define files
> that correspond to the actual notes as their children.
> However, IMHO indexing baskets (tree items) and assigning all of the
> data and metadata of their children (actual notes) to these baskets
> (when adding to Nepomuk for indexing) would be enough; because to my
> experience, baskets individually do not contain a great deal of data
> and once the right one is opened, it can be easily searched.
>
>> Hope this helps,
>> Brian
>>
>
> Thanks again,
>
> Amir
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Basket-devel mailing list
Basket-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basket-devel

Reply via email to