From kde-devel Thu Jun 30 22:32:02 2005 From: Luke Sandell Date: Thu, 30 Jun 2005 22:32:02 +0000 To: kde-devel Subject: KIO woes Message-Id: <200506302232.02777.kdedevel () luketopia ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=112018520627110 Hello all. I am working on a KIO Slave to act as a front end to the KStandardDirs class, called kio_resources. This will allow users to browse/modify/add standard resources, such as wallpapers and configuration files, without being cognizant of where they are stored. It represents itself as a directory tree, with the standard resources names (wallpaper, config) as the top-level directories. I am calling redirection() whenever the user actually tries to get() or put() a file, but for everything else I have my own implementation. So far, everything is working as planned, except for one thing. For some reason, Konqueror has problems working with files whose Mimetype cannot be determined from their extension. For one, it does not show previews for them, although it does show them when accessing the same files with file:///. For their Mimetype it says "Unknown". Another problem is that they don't do anything when I double-click them, except set the animated widget in motion. Presumably, it is trying to determine their Mimetype so that it can figure out what to use to open them. I have not overridden mimetype() in my implementation, because I want it to determine the mimetype using a get(). I verified using kioslavetest that the correct Mimetype is indeed being returned for these files, and that the get() does indeed return the file contents. Interestingly, if I choose Open With... from the context menu and enter an application name, the application has no problem opening the file. What would cause Konqueror to act like this for files without extensions? Thanks, Luke >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<