On Mon, 29 Dec 2003 19:13:17 -0800, you wrote:
Rein Klazes wrote:
Under KDE it should be enough to do:
kfmclient exec "${file}"
choosing in case of a html file the default browser configured for KDE. It works also for eg .mp3 files, but then the file spec must have been converted from WINE to Unix paths, for instance with "winepath".
Makes me nervous... the ability to cause code to execute is one of the most frequently abused powers of IE.
Well, disable or do not use IE then.
Double clicking on an mp3 file to play it is not something that should make you nervous. Plenty of users take it for granted and wonder what is wrong when it doesn't work.
And we are discussing using the Unix mime type database and we are using Unix programs. IE knows nothing about that, how can it abuse it to execute malicious code?.
(or do I miss your point somewhere?)
Besides, wine isn't kde specific; we can't rely on kfmclient to exist. It would be better to make use of http://freedesktop.org/Standards/shared-mime-info-spec That way it would work with not just KDE, but also Gnome and any other freedesktop.org-compliant environment.
Of course, I wanted to take the discussion to integrating with the desktop and away from coding ourselves lists of browsers that may be available.
I am a Gnome user myself. Last time is researched this, Gnome did not have the equivalent of kfmclient. It required some gtk programming. This may have changed, or maybe kfmclient will become gnome compatible at some time. I don't know.
Rein.