Hi,

I'm still out of luck.

Here are debug messages printed in full debug mode: -

yogesh@linux-n1r6:~> kioclient exec theone:///
unnamed app(14232) ClientApp::doIt: Creating ClientApp
kioclient(14232) ClientApp::kde_open: KUrl("theone:/")
kioclient(14232)/kio (KRun) KRun::slotTimeout: KRun(0x719680)
slotTimeout called
kioclient(14232)/kio (KRun) KRun::init: INIT called
kioclient(14232)/kdecore (KSycoca) KSycocaPrivate::openDatabase:
Trying to open ksycoca from "/var/tmp/kdecache-yogesh/ksycoca4"
kioclient(14232)/kio (KRun) KRun::init: Testing directory (stating)
kioclient(14232)/kio (Scheduler) KIO::SchedulerPrivate::doJob:
KIO::SimpleJob(0x6f5dc0)
kioclient(14232)/kio (Scheduler) KIO::SchedulerPrivate::protoQ:
creating ProtoQueue instance for "theone"
kioclient(14232)/kio (Scheduler) KIO::ProtoQueue::ProtoQueue:
m_maxConnectionsTotal: 4 m_maxConnectionsPerHost: 4
kioclient(14232) KSharedUiServerProxy::KSharedUiServerProxy: kuiserver
registered
kioclient(14232)/kio (KRun) KRun::init:  Job  KIO::StatJob(0x6f5dc0)
is about stating  "theone:/"
kioclient(14232)/kio (Slave) KIO::Slave::createSlave: createSlave
"theone" for KUrl("theone:/")
kioclient(14232)/kio (KIOConnection)
KIO::ConnectionServer::listenForRemote: Listening on
"local:/tmp/ksocket-yogesh/kioclientd14232.slave-socket"
kioclient(14232)/kio (Slave) KIO::Slave::gotInput: slave died pid =  14235
kioclient(14232)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished:
KIO::StatJob(0x6f5dc0) KIO::Slave(0x710c50)
kioclient(14232)/kio (KRun): KRun(0x719680) ERROR 143 "The process for
the theone protocol died unexpectedly."
kioclient(14232)/kio (Scheduler) KIO::SchedulerPrivate::slotSlaveDied:
KIO::Slave(0x710c50)
kioclient(14232)/kio (KRun) KRun::slotTimeout: KRun(0x719680)
slotTimeout called
kioclient(14232)/kdeui (KNotification) KNotificationManager::close: 320

Please help me on this; I've no idea what to look for even if I try to
debug the code.

Regards,

Yogesh Marwaha

On 26 August 2011 22:04, Yogesh Marwaha <yogeshm....@gmail.com> wrote:
> Hi,
>
> I'm still struck on this. I've prepared a minimal demo for you to try;
> attaching herewith.
>
> Please help.
>
> On 25 August 2011 22:07, Yogesh Marwaha <yogeshm....@gmail.com> wrote:
>> Hi,
>>
>> This time I am in trouble experimenting with KIO::ForwardingSlaveBase
>>
>> Here is the code:
>>
>> class SKioSlave : public KIO::ForwardingSlaveBase{
>> public:
>>    SKioSlave(const QByteArray& poolSocket, const QByteArray& appSocket);
>>    virtual ~SKioSlave();
>>    virtual bool rewriteUrl(const KUrl& url, KUrl& newURL);
>> };
>>
>> extern "C" int KDE_EXPORT kdemain( int argc, char **argv ){
>>    KComponentData instance( "kio_sparkle" );
>>
>>    if (argc != 4){
>>        fprintf( stderr, "Usage: kio_sparkle protocol domain-socket1
>> domain-socket2\n");
>>        exit( -1 );
>>    }
>>    SKioSlave slave( argv[2], argv[3] );
>>    slave.dispatchLoop();
>>    return 0;
>> }
>>
>> SKioSlave::SKioSlave(const QByteArray& poolSocket, const QByteArray&
>> appSocket): ForwardingSlaveBase("sparkle", poolSocket, appSocket){
>> }
>>
>> SKioSlave::~SKioSlave(){
>> }
>>
>> bool SKioSlave::rewriteUrl(const KUrl& url, KUrl& newURL){
>>    newURL.setProtocol("file");
>>    newURL.addPath("/");//Just in case we dont get '/' for root
>>    return true;
>> }
>>
>> Here is the protocol file:
>>
>> [Protocol]
>> exec=kio_sparkle
>> protocol=sparkle
>> Icon=user-desktop
>> input=none
>> output=filesystem
>> listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link
>> reading=true
>> writing=true
>> makedir=true
>> deleting=true
>> linking=true
>> moving=true
>> opening=true
>> maxInstances=4
>> Class=:local
>>
>>
>> Here is the outpur of 'kioclient exec sparkle:/'
>> kioclient(20314)/kio (KRun): KRun(0x78fc80) ERROR 143 "The process for
>> the sparkle protocol died unexpectedly."
>>
>> Monitoring with debug messages (above code is striped of them) show
>> that rewriteUrl() is being called and it is ok till return.
>>
>> Please shed some light on this. I'm getting crazy ;-)
>>
>> Regards,
>>
>> Yogesh Marwaha
>>
>
> --
> Yogesh M
>

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to