associating mimetypes with ioslaves
salva_ste at tin.it
salva_ste at tin.it
Tue May 25 16:03:55 BST 2004
Hi,
I would only know if there is any plan to implement X-Konq-Redirect as described
in this comment:
//////////// Tar/zip files support
// The hack-ish and hardcoded way.
// Possible cleaner solution: 2 properties in the mimetype definition,
// e.g. X-Konq-Redirect-URL set to tar:%f/
// and X-Konq-Redirect-Mimetype set to inode/directory
if ( url.isLocalFile()) // kio_tar/kio_zip only support local files
{
if ( serviceType == QString::fromLatin1("application/x-tar") ||
serviceType == QString::fromLatin1("application/x-tgz") ||
serviceType == QString::fromLatin1("application/x-tbz") )
{
url.setProtocol( QString::fromLatin1("tar") );
url.setPath( url.path() + '/' );
serviceType = "inode/directory";
// kdDebug(1202) << "TAR FILE. Now trying with " << url.url() << endl;
}
I guess that there is no other way to associate a mimetype with a kioslave.
Thanks, Stefano
More information about the kfm-devel
mailing list