Re: qml trash

2013-06-10 Thread Heena Mahour
Hi. @Aaron : That works :) Thanks Regards On Mon, Jun 10, 2013 at 3:08 PM, Aaron J. Seigo wrote: > On Monday, June 10, 2013 00:39:20 Heena Mahour wrote: > > Hey , > > okay ,now the thing left here is empty trash in which I am not getting > how > > to implement : > > that you can do with plasmo

Re: qml trash

2013-06-10 Thread Aaron J. Seigo
On Monday, June 10, 2013 00:39:20 Heena Mahour wrote: > Hey , > okay ,now the thing left here is empty trash in which I am not getting how > to implement : that you can do with plasmoid.runCommand("ktrash", ["--empty"]); it is documented here: http://techbase.kde.org/Development/Tutorials/Plasma

Re: qml trash

2013-06-09 Thread Heena Mahour
Hey , okay ,now the thing left here is empty trash in which I am not getting how to implement : KStandardDirs::findExe("ktrash") << "--empty"; m_emptyProcess->start(); in javascript (or c++ ? ) I will push the rest of the changes I made in some time as it is giving an error of remote reject

Re: qml trash

2013-06-09 Thread Kevin Krammer
On Sunday, 2013-06-09, Marco Martin wrote: > On Sunday 09 June 2013, Aaron J. Seigo wrote: > > QMetaObject::invokeMethod: No such method > > QDeclarativeFlow_QML_0::action_trash() > > > > there were other errors in there as well. all are visible by using > > plasmoidviewer. i'll push some fixes in

Re: qml trash

2013-06-09 Thread Marco Martin
On Sunday 09 June 2013, Heena Mahour wrote: > @Aaron .Yes,it is working on left clicking on it :P but on right click in > the original c++ trash can there is a pop up menu which contains open trash > and empty trash option ,So,for that open trash it is not working ,isn't it? > Regards setAction(St

Re: qml trash

2013-06-09 Thread Heena Mahour
@Aaron .Yes,it is working on left clicking on it :P but on right click in the original c++ trash can there is a pop up menu which contains open trash and empty trash option ,So,for that open trash it is not working ,isn't it? Regards @Marco, Yes,And what about open trash option? Regards On Sun, J

Re: qml trash

2013-06-09 Thread Marco Martin
On Sunday 09 June 2013, Aaron J. Seigo wrote: > QMetaObject::invokeMethod: No such method > QDeclarativeFlow_QML_0::action_trash() > > there were other errors in there as well. all are visible by using > plasmoidviewer. i'll push some fixes in a moment that you can look at. i guess that for empty

Re: qml trash

2013-06-09 Thread Aaron J. Seigo
On Saturday, June 8, 2013 23:50:31 Heena Mahour wrote: > Hi , I am trying to implement qml plasmoid of trash , in the action menu > for statement KRun::runUrl(KUrl("trash:/"), "inode/directory", 0); I > implemented it is qml like this :http://pastebin.com/raw.php?i=266L3Hx0 but > it is not opening

Re: qml trash

2013-06-09 Thread Aaron J. Seigo
On Saturday, June 8, 2013 23:50:31 Heena Mahour wrote: > Hi , I am trying to implement qml plasmoid of trash , in the action menu > for statement KRun::runUrl(KUrl("trash:/"), "inode/directory", 0); I > implemented it is qml like this :http://pastebin.com/raw.php?i=266L3Hx0 but > it is not opening

Re: qml trash

2013-06-09 Thread Aaron J. Seigo
On Sunday, June 9, 2013 16:23:31 Heena Mahour wrote: > Hey all ,one more query is that in order to open trash:/ what should I > write in engine: and connectedSources you should not be using a DataEngine for this, but rather plasmoid.openUrl. here's the good news: it works perfectly here. i start

Re: qml trash

2013-06-09 Thread Heena Mahour
Hey all ,one more query is that in order to open trash:/ what should I write in engine: and connectedSources here : PlasmaCore.DataSource { id: dataEngine engine://what should be I include here among the data engine connectedSources: [??] } On Sun, Jun 9, 2013 at 12:06

Re: qml trash

2013-06-08 Thread Kai Uwe Broulik
Also use openUrl instead of LaunchApplication ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel

Re: qml trash

2013-06-08 Thread Kai Uwe Broulik
Hi, Make sure you have requested the run application extension in the metadata desktop file. Otherwise that call will not work. http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/API-Extensions Heena Mahour schrieb: >___ >Plasma-devel m

Re: qml trash

2013-06-08 Thread Shaun Reich
bit of a shot in the dark here, but what are the .desktop permissions set to? i'm guessing it needs some set.. -- Shaun Reich, KDE Software Developer (kde.org) ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/pla

qml trash

2013-06-08 Thread Heena Mahour
Hi , I am trying to implement qml plasmoid of trash , in the action menu for statement KRun::runUrl(KUrl("trash:/"), "inode/directory", 0); I implemented it is qml like this :http://pastebin.com/raw.php?i=266L3Hx0 but it is not opening trash could you tell what modifications are needed here ? rega