From kde-devel Mon Oct 31 23:33:35 2005 From: Luke Monahan Date: Mon, 31 Oct 2005 23:33:35 +0000 To: kde-devel Subject: Some help required with the media kioslave Message-Id: <200511011033.43416.lukemonahan () gmail ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=113080256825883 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0917270274==" --===============0917270274== Content-Type: multipart/signed; boundary="nextPart9929396.u1vKDdatPK"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart9929396.u1vKDdatPK Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi All, I have been playing around with "media:/" for some fun, and to have it full= y=20 support my ipod. What I have done is define new mimetypes for ipods (media/ipod_[un]mounted)= =20 and then in the halbackend.cpp code have detected an ipod being plugged in= =20 and used this mimetype.=20 I then want, when I click on the ipod entry in "media:/" to have konqueror= =20 open with the "ipod:/" kioslave (http://kpod.sourceforge.net/ipodslave/). = =20 To do all this I used the code: if (QString(libhal_drive_get_model(halDrive)) =3D=3D "iPod") { mimeType =3D "media/ipod" + MOUNT_SUFFIX; medium->unmountableState("ipod:/"); } What doesn't work is when I double click on the mounted ipod in "media:/", = the=20 correct kioslave opens (i.e. the three directories at the top level of=20 "ipod:/" are displayed in the konqueror window), but these directories are= =20 not reconized as being of any mimetype. They have blank icons and the=20 preview says they are of "unknown" type. If I manually browse to "ipod:/" then they are correctly displayed as=20 inode/directory types. Does anyone know why these directories in the ipod kioslave would not be=20 recognied correctly in this situation? I've pasted the "media/ipod_mounted" mimetype I created below if it is usef= ul. Thanks for your help, Luke. [Desktop Entry] Encoding=3DUTF-8 Icon=3Dipod_mount Type=3DMimeType MimeType=3Dmedia/ipod_mounted Comment=3DMounted iPod X-KDE-IsAlso=3Dinode/directory X-KDE-AutoEmbed=3Dtrue --nextPart9929396.u1vKDdatPK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDZqnX0SiwOax1l2ERAg/aAJoCXdk9MryR5ToKxHuqZjZ68gGf4ACfQmIE VGYiuyWPCM8S5yacmmvuDnE= =Xelb -----END PGP SIGNATURE----- --nextPart9929396.u1vKDdatPK-- --===============0917270274== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0917270274==--