[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Konqueror and service menus
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-07-31 11:59:12
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 31 July 2002 13:17, Pascal Francq wrote:
> On Friday 26 July 2002 15:48, David Faure wrote:
> > On Friday 26 July 2002 15:10, Pascal Francq wrote:
> > > On Friday 26 July 2002 13:03, Pascal Francq wrote:
> > > > On Friday 26 July 2002 10:46, David Faure wrote:
> > > > > On Wednesday 24 July 2002 10:41, Pascal Francq wrote:
> > > > > > Hi,
> > > > > > I have write a little ".desktop" file for 'text/html' documents.
> > > > > > When I open a local document (file:/......) in Konqueror, the menu
> > > > > > entries appear without any problem, but when I open a internet
> > > > > > document (http:/...) in Konqueror, the menu entries do not appear.
> > > > > > Any ideas?
> > > > >
> > > > > Use %U in the Exec line.
> > > >
> > > > It was used. I have attached the desktop to this mail, so perhaps you
> > > > can test it.
> > >
> > > In fact when I open html file with an ftp protocol, no problems, the menu
> > > entries appear. But when I open a html file through http
> > > ("http://www.kde.org") the menu entries do not appear. So it seems that
> > > my problem is link to the http protocol. By gthe way, I have KDE 3.0.2
> > > installed.
> >
> > A link over HTTP could point to anything, there's no way to find it's HTML
> > before actually opening it (or running a KIO::mimeType() job on it, which
> > we don't do when opening the popupmenu, it would be much too slow).
> > I guess what you want is a protocol-based selection of the service menus.
> > Feel free to add support for X-KDE-Protocol in the servicemenu code,
> > a bit like kpropertiesdialog already has.
> 
> But, when a HTTP document is viewed, konqueror knows is MIME type because it 
> has open the right KPart (KHTML, ........).
Yes because it first starts to retrieve the data (KIO::get), and then the slave
emits the mimetype, and then we know which part to use.

> When the popupmenu is construct, it knows the type of the document?
No (not over HTTP)

> There is probably something I miss in way the popupmenu is generated I suppose.
We don't want to have a very slow (network-dependent) KIO::get() for every 
right click on an html page....

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
On holidays from 01/08 to 06/08
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9R9ER72KcVAmwbhARAlJ2AKCAq1QCB+aqMksgGHQDQWguf43sKACbBaVl
Bkvyzg5xAOwTPwPj0cq2wJo=
=Kx8j
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic