Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Quoted
Original von anda_skoa
my guess is, that the webserver sends the file using application/octet-stream as its MIME type.
Usually there is not application assoicated with application/octet-stream because it can be anything.
Quoted
Original von Rinse
Quoted
Original von anda_skoa
my guess is, that the webserver sends the file using application/octet-stream as its MIME type.
Usually there is not application assoicated with application/octet-stream because it can be anything.
Ok, so i should fill in a wishlist for Konqueror to also check the file extension when there is no application available for the mime type that the webserver is sending.
Quoted
This also explains why Konqueror tries to open mpg-files in kwrite on some websites :?
Quoted
Original von anda_skoa
Quoted
Original von Rinse
This also explains why Konqueror tries to open mpg-files in kwrite on some websites :?
No, this case is different.
The webserver is sending the wrong MIME type: text/plain while video/mpeg would have been correct
Quoted
If a source is capable of delivering metadata such as the MIME type, it always overrules guessing.
Quoted
Original von Rinse
Yep, but other browser open the link in mplayer or another associated mediaplayer. I know that the webdeveloper is to blame, but from a user perspective, it doen't make sence that he/she can't open the link..
Quoted
Technicly, this is correct, but for users it is odd that Konqueror tries to open the movie in kwrite, and that they have no way to correct this.
Quoted
So my opinion is that konqueror should either check the file extension before the mime type from the server, or present a dialog where the user can change the applcation Konqueror tries to open the file with..
Quoted
Original von Rinse
Trouble is that only Konqueror has this problem. Other browsers, like opera, simply open the link with the associated application, based on the extension, and not based on the mime type that the server is sending..
Quoted
Original von cmbofh
File extension magic is evil.
Quoted
Back to KDE and konqi:
I think anda_skoa's proposal of ignoring certain mime-types (application/octet-stream, ...)
if set as Content-Type header and then falling back to other means makes a lot of sense.
Quoted
I'd also like to be able to treat a link as a certain
mime type, e.g. an entry "open URL, overriding
mime-type" in the context menu that shows when you right click a link.
This could pop up a selector where the user could select the mime type
he wants the resource at the URL to be treated as
(this one time only, it should be only temporary).
Quoted
Original von Rinse
[code:1]
======================================================
= Would you like to open file.mpg with kwrite? =
= =
= [open] [save to disk] [open with other application]=
======================================================
[/code:1]
Quoted
Original von Rinse
Correct.
Is there also a problem with inline links?
Rinse
Quoted
Original von Rinse
Correct.
Is there also a problem with inline links?
Rinse
Quoted
Original von cmbofh
In Konqi, I'd like to be be able to say:
I want to open *this* link or element in the
configured external viewer for jpegs (although image/jpeg
is configured to be displayed inline).
Or:
I want to open *this* link or element in program xxx
(although image/jpeg is configured to be displayed inline by app yyy).
Quoted
Maybe Shift-Click plus your enhanced Save-As box would do the trick.
Quoted
Original von cmbofh
Ooops, I guess I'm not making much sense here.
There already *is* the "open with" option in the
context menu.
I got confused by the context menu you get
when you're hovering over an image. In order
to open the *image* in an arbitrary app you have
to select "view image" first and then "open with".
Otherwise you'd open the enclosing HTML in the
image viewing app.
OTOH, if you're hovering over a link you'll open
the *link location* when selecting "open with".
I find that somewhat inconsistent...
Quoted
Original von anda_skoa
Open With is always part of the context menu IIRC
Quoted
Original von anda_skoa
Quoted
Maybe Shift-Click plus your enhanced Save-As box would do the trick.
The problem with the dialog is, that it doesn't make sense in all applications.
Keep in mind that Konqueror is not only a web browser using its own IO subsystem, but a very versatile viewing-application using KIO.
The user and the system have to be sure that an URL is treated equally by all KIO using applications.
This is one of the main problems on Windows. One program determines a MIME type for an URL or an attachment and thinks its save (image/jpeg) and then tells Windows to open it.
Windows performs a different check and sees that it is in fact an executable and executes it -> security breach.
Quoted
Original von Rinse
Yep, got trapped by that one on more then one occasion, I expected that when I hoover over a link, and select "open with", the link would be opened with the selected application.
But in stead the webpage itself gets opened in the selected app.
Quoted
Original von cmbofh
But that's how it works. The *link* is opened.
I right clicked the link in your signature and chose to
open it in kate -> I got dutch source code ;-)
Quoted
I would have
expected konqi to do the same for images.
[/uote]
Me too
Quoted
But then again, there are also images with links around them
so it's probably impossible to find a solution that's intuitive
and consistent under all circumstances...
I don't know where "open with" comes from, but perhaps when the mouse is not hooverd over a link, the string could be something like "open this page with"
Rinse
Forum Software: Burning Board®, developed by WoltLab® GmbH
Linux Computer - Linux Forum -
Linux Computer und Notebooks - Lastminute - Wasserbetten & Whirlpools