Commit cb3a5b1b authored by Christian Ehrlicher's avatar Christian Ehrlicher
Browse files

k3process--

svn path=/trunk/KDE/kdebase/libkonq/; revision=676659
parent 4f745901
......@@ -30,9 +30,10 @@
#include <knotification.h>
#include <krun.h>
#include <kshell.h>
#include <kprocess.h>
#include <kshortcut.h>
#include <kprotocolmanager.h>
#include <k3process.h>
#include <kshell.h>
#include <kio/job.h>
#include <kio/deletejob.h>
#include <kio/jobuidelegate.h>
......@@ -448,15 +449,16 @@ void KonqOperations::asyncDrop( const KFileItem * destItem )
// (If this fails, there is a bug in KFileItem::acceptsDrops / KDirModel::flags)
kDebug(1203) << "KonqOperations::doDrop " << m_destUrl.path() << "should be an executable" << endl;
Q_ASSERT ( access( QFile::encodeName(m_destUrl.path()), X_OK ) == 0 );
K3Process proc;
KProcess proc;
proc << m_destUrl.path() ;
// Launch executable for each of the files
QStringList args;
KUrl::List lst = m_info->urls;
KUrl::List::Iterator it = lst.begin();
for ( ; it != lst.end() ; it++ )
proc << (*it).path(); // assume local files
args << (*it).path(); // assume local files
kDebug(1203) << "starting " << m_destUrl.path() << " with " << lst.count() << " arguments" << endl;
proc.start( K3Process::DontCare );
KProcess::startDetached( m_destUrl.path(), args );
}
delete this;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment