Implementation of KToolInvocation::invokeFilemanager

David Faure faure at kde.org
Tue Dec 2 19:16:12 GMT 2008


On Sunday 30 November 2008, Elias Probst wrote:
> Hi,
> 
> today we were discussing how to invoke the default filemanager from Plasma's 
> 'Devices recently plugged in...' applet and as there's now the option to 
> select the default filemanager in Systemsettings we thought this could be done 
> using 'KToolInvocation::invokeFilemanager', but it seems this is still 
> missing.

There is no need for such a method, just use KRun with the URL to the directory.

If you know it's a directory, KRun::runUrl(url, "inode/directory", this)
otherwise (if you don't know the mimetype in all cases), new KRun(url, this).

-- 
David Faure, faure at kde.org, sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list