Re: [Solved] [trinity-devel] Re: How to test tdeioslave/trash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michele Calgaro wrote:

> On 2016/09/22 09:56 PM, Michele Calgaro wrote:
>> Yes, I thought your question was deeper in fact.
>> 
>> tdeio system is in principle "simple". When an application needs a file
>> (whether a local one or remote one), is uses a tdeio job to request it. A
>> corresponding tdeio-slave will actually do the work to get the file and
>> send back to the tdeio requesting application. Under the hood, there is
>> much more going on, including task scheduling for asynchronous tasks.
>> 
>> Not sure there is some documentation about it. I recently had to dwell
>> into the tdeio subsystem to debug bug 2685 and I found useful info in the
>> tdelibs html files related to the class involved. See tdeio/tdeio
>> documentations in tdelibs
>>
file:///opt/trinity/share/doc/tde/HTML/en/tdelibs-apidocs/tdeio/tdeio/html/classTDEIO_1_1Job.html
>> and navigate around from there.
>> 
>> Cheers
>>   Michele
>> 
> Forgot to mention that protocols are special instances of tdeio-slaves
> that make a speficic file available through a given protocol.
> For example an ftp tdeio-slaves will make a file on an ftp server looks
> like a local file to any tde application.
> 
> Cheers
>   Michele

Hi,
I was able to get the dialog visible in the properties window.
I also know now how to test such things.

This plugin (library) is service.
In the .desktop file I write now 

[Desktop Entry]
Type=Service
Name=Trash Properties Page
Name[bg]=Свойства на кошчето
X-TDE-Library=ktrashpropsdlgplugin
X-TDE-ServiceTypes=KPropsDlg/Plugin,media/builtin-trash

the file goes in

        /opt/trinity/share/services/ktrashpropsdlgplugin.desktop

After this run
        tdebuildsycoca

Now right click and select properties on the trashbin and watch
in .xsession-err...

tdeio (KSycoca): Trying to open tdesycoca
from /var/tmp/tdecache-emanoil/tdesycoca
tdeio (TDETrader): query for ThumbCreator : returning 14 offers
tdeio (TDETrader): query for media/builtin-trash : returning 0 offers
tdeio (TDEIOJob): stat file:///opt/trinity/share/apps/kdesktop/Desktop/Trash
tdeio_file: FileProtocol::stat details=2
tdeio (TDETrader): query for ThumbCreator : returning 14 offers
tdeio (TDETrader): query for media/builtin-trash : returning 1 offers

The issue now is that it does not save the values set in the dialog window.

regards


---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-devel-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: trinity-devel-help@xxxxxxxxxxxxxxxxxxxxxxxxxx
Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting





[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux