Version: 4.6 (using Devel) OS: Linux Today I got a http link for a bmp image via psi (jabber). Clicked and kde showed a dialog asking me what kind of app it should use to open the file. In my opinion kde should have just opened the image with default viewer. File association dialog states that image/bmp is opened in gwenview (works when opening bmp images within dolphin). Then I tried the same thing with native kde app -- konversation. When clicked on the link, a konqueror window has been opened asking if the image should be Opened with... or Saved as... When selected Open with, the same dialog appears as with psi. Expected behaviour: just show the picture in gwenview. Reproducible: Always Steps to Reproduce: 1. open some communicator (psi and konversation have been tested against this) 2. copy/paste a link like http://i1.kwejk.pl/site_media/obrazki/85989-pani-z-dziekanatu.bmp 3. click on it Actual Results: "Open with" dialog appears Expected Results: Image should be opened instantly in gwenview as it is configured in file association
Darn, it does the same when I click on this link viewing this bug page with konqueror! Shows Open with... or Save as... dialog. Just tried to adjust file association setting but it doesn't react on my modifications at all. BTW I use KDE 4.6.3, there was only 4.6.2 vesion in bug filling form. I guess this problem occurs not only with bmp files.
(In reply to comment #1) > Darn, it does the same when I click on this link viewing this bug page with > konqueror! Shows Open with... or Save as... dialog. Just tried to adjust file > association setting but it doesn't react on my modifications at all. > > BTW I use KDE 4.6.3, there was only 4.6.2 vesion in bug filling form. > > I guess this problem occurs not only with bmp files. This is not a KDE bug. The server returns "image/x-ms-bmp" as a content type. There is no such mime-type. BMP files are supposed to have a mime-type of "image/bmp".
Git commit a06f767ed7ba28e2e45b5281f40dbb91ae0406ea by Dawit Alemayehu. Committed on 17/06/2011 at 04:52. Pushed by adawit into branch 'KDE/4.6'. Workaround yet another broken server implementation that sends image/x-bmp instead of image/bmp for BMP images. BUG: 273238 FIXED-IN: 4.6.5 M +2 -0 kioslave/http/http.cpp http://commits.kde.org/kdelibs/a06f767ed7ba28e2e45b5281f40dbb91ae0406ea
Git commit b58d92b29d6ccfb76151d22c463fb906cbd405a4 by Dawit Alemayehu. Committed on 17/06/2011 at 04:52. Pushed by adawit into branch 'master'. Workaround yet another broken server implementation that sends image/x-bmp instead of image/bmp for BMP images. BUG: 273238 FIXED-IN: 4.6.5 (cherry picked from commit a06f767ed7ba28e2e45b5281f40dbb91ae0406ea) M +2 -0 kioslave/http/http.cpp http://commits.kde.org/kdelibs/b58d92b29d6ccfb76151d22c463fb906cbd405a4
image/x-ms-bmp is an alias for image/bmp in the mime-type database, this means they should act the same, and the correction could be made automatically.
I have reported this as a bug to the shared mime-info package at freedesktop, see: https://bugs.freedesktop.org/show_bug.cgi?id=38415